Class: PandaPal::Platform::Canvas

Inherits:
PandaPal::Platform show all
Defined in:
app/models/panda_pal/platform.rb

Defined Under Namespace

Modules: OrgExtension

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from PandaPal::Platform

#public_jwks

Constructor Details

#initialize(org) ⇒ Canvas



32
33
34
# File 'app/models/panda_pal/platform.rb', line 32

def initialize(org)
  @organization = org
end

Instance Attribute Details

#organizationObject

Returns the value of attribute organization.



30
31
32
# File 'app/models/panda_pal/platform.rb', line 30

def organization
  @organization
end

Instance Method Details

#authentication_redirect_urlObject



44
45
46
# File 'app/models/panda_pal/platform.rb', line 44

def authentication_redirect_url
  "#{base_url}/api/lti/authorize_redirect"
end

#base_urlObject



52
# File 'app/models/panda_pal/platform.rb', line 52

def base_url; org.canvas_url; end

#grant_urlObject



48
49
50
# File 'app/models/panda_pal/platform.rb', line 48

def grant_url
  "#{base_url}/login/oauth2/token"
end

#hostObject



36
37
38
# File 'app/models/panda_pal/platform.rb', line 36

def host
  base_url
end

#jwks_urlObject



40
41
42
# File 'app/models/panda_pal/platform.rb', line 40

def jwks_url
  "#{base_url}/api/lti/security/jwks"
end