Class: PandaPal::Platform::Canvas
- Inherits:
-
PandaPal::Platform
- Object
- PandaPal::Platform
- PandaPal::Platform::Canvas
- Defined in:
- app/models/panda_pal/platform.rb
Constant Summary
Constants inherited from PandaPal::Platform
Instance Attribute Summary collapse
-
#base_url ⇒ Object
Returns the value of attribute base_url.
Instance Method Summary collapse
- #authentication_redirect_url ⇒ Object
- #grant_url ⇒ Object
- #host ⇒ Object
-
#initialize(base_url) ⇒ Canvas
constructor
A new instance of Canvas.
- #jwks_url ⇒ Object
Methods inherited from PandaPal::Platform
Constructor Details
#initialize(base_url) ⇒ Canvas
Returns a new instance of Canvas.
16 17 18 |
# File 'app/models/panda_pal/platform.rb', line 16 def initialize(base_url) @base_url = base_url end |
Instance Attribute Details
#base_url ⇒ Object
Returns the value of attribute base_url.
14 15 16 |
# File 'app/models/panda_pal/platform.rb', line 14 def base_url @base_url end |
Instance Method Details
#authentication_redirect_url ⇒ Object
28 29 30 |
# File 'app/models/panda_pal/platform.rb', line 28 def authentication_redirect_url "#{base_url}/api/lti/authorize_redirect" end |
#grant_url ⇒ Object
32 33 34 |
# File 'app/models/panda_pal/platform.rb', line 32 def grant_url "#{base_url}/login/oauth2/token" end |
#host ⇒ Object
20 21 22 |
# File 'app/models/panda_pal/platform.rb', line 20 def host base_url end |
#jwks_url ⇒ Object
24 25 26 |
# File 'app/models/panda_pal/platform.rb', line 24 def jwks_url "#{base_url}/api/lti/security/jwks" end |