Class: PandaPal::Platform::Generic
- Inherits:
-
PandaPal::Platform
- Object
- PandaPal::Platform
- PandaPal::Platform::Generic
- Defined in:
- app/models/panda_pal/platform.rb
Instance Attribute Summary collapse
-
#authentication_redirect_url ⇒ Object
readonly
Returns the value of attribute authentication_redirect_url.
-
#grant_url ⇒ Object
readonly
Returns the value of attribute grant_url.
-
#jwks_url ⇒ Object
readonly
Returns the value of attribute jwks_url.
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
#authentication_redirect_url ⇒ Object (readonly)
Returns the value of attribute authentication_redirect_url.
98 99 100 |
# File 'app/models/panda_pal/platform.rb', line 98 def authentication_redirect_url @authentication_redirect_url end |
#grant_url ⇒ Object (readonly)
Returns the value of attribute grant_url.
98 99 100 |
# File 'app/models/panda_pal/platform.rb', line 98 def grant_url @grant_url end |
#jwks_url ⇒ Object (readonly)
Returns the value of attribute jwks_url.
98 99 100 |
# File 'app/models/panda_pal/platform.rb', line 98 def jwks_url @jwks_url end |
Instance Method Details
#init(base_url, jwks: "/api/lti/security/jwks", auth_redirect: "/api/lti/authorize_redirect", grant: "/login/oauth2/token") ⇒ Object
100 101 102 103 104 |
# File 'app/models/panda_pal/platform.rb', line 100 def init(base_url, jwks: "/api/lti/security/jwks", auth_redirect: "/api/lti/authorize_redirect", grant: "/login/oauth2/token") @jwks_url = URI.join(base_url, jwks).to_s @authentication_redirect_url = URI.join(base_url, auth_redirect).to_s @grant_url = URI.join(base_url, grant).to_s end |