Class: PandaPal::Platform::Canvas
- Inherits:
-
PandaPal::Platform
- Object
- PandaPal::Platform
- PandaPal::Platform::Canvas
- Defined in:
- app/models/panda_pal/platform.rb
Defined Under Namespace
Modules: OrgExtension
Instance Attribute Summary collapse
-
#organization ⇒ Object
Returns the value of attribute organization.
Instance Method Summary collapse
- #authentication_redirect_url ⇒ Object
- #base_url ⇒ Object
- #grant_url ⇒ Object
- #host ⇒ Object
-
#initialize(org) ⇒ Canvas
constructor
A new instance of Canvas.
- #jwks_url ⇒ Object
Methods inherited from PandaPal::Platform
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
#organization ⇒ Object
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_url ⇒ Object
44 45 46 |
# File 'app/models/panda_pal/platform.rb', line 44 def authentication_redirect_url "#{base_url}/api/lti/authorize_redirect" end |
#base_url ⇒ Object
52 |
# File 'app/models/panda_pal/platform.rb', line 52 def base_url; org.canvas_url; end |
#grant_url ⇒ Object
48 49 50 |
# File 'app/models/panda_pal/platform.rb', line 48 def grant_url "#{base_url}/login/oauth2/token" end |
#host ⇒ Object
36 37 38 |
# File 'app/models/panda_pal/platform.rb', line 36 def host base_url end |
#jwks_url ⇒ Object
40 41 42 |
# File 'app/models/panda_pal/platform.rb', line 40 def jwks_url "#{base_url}/api/lti/security/jwks" end |