Class: PandaPal::Platform::Canvas

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

Defined Under Namespace

Modules: OrgExtension

Constant Summary collapse

KNOWN_ISSUERS =
[
  "https://canvas.instructure.com",
  "https://canvas.beta.instructure.com",
  "https://canvas.test.instructure.com",
]

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from PandaPal::Platform

deserialize, #initialize, materialize_extension, #public_jwks, resolve_platform, resolve_platform_class, resolve_raw_platform, #serialize

Constructor Details

This class inherits a constructor from PandaPal::Platform

Instance Attribute Details

#organizationObject

Returns the value of attribute organization.



8
9
10
# File 'app/models/panda_pal/platform/canvas.rb', line 8

def organization
  @organization
end

Instance Method Details

#authentication_redirect_urlObject



20
21
22
# File 'app/models/panda_pal/platform/canvas.rb', line 20

def authentication_redirect_url
  "#{@issuer}/api/lti/authorize_redirect"
end

#grant_urlObject



24
25
26
# File 'app/models/panda_pal/platform/canvas.rb', line 24

def grant_url
  "#{@issuer}/login/oauth2/token"
end

#jwks_urlObject



16
17
18
# File 'app/models/panda_pal/platform/canvas.rb', line 16

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