Class: Rack::OAuth2::AssertionProfile::Request
- Inherits:
-
Request
- Object
- Request
- Rack::OAuth2::AssertionProfile::Request
- Defined in:
- lib/rack/oauth2/assertion_profile.rb
Overview
Internal class used to parse the current request based on the enviroment parameters.
Instance Method Summary collapse
-
#assertion_profile? ⇒ Boolean
Returns a value indicating whether the type the of authorization request is assertion.
-
#format ⇒ Object
Reads from the formvars the format of the set assertion.
-
#initialize(env) ⇒ Request
constructor
A new instance of Request.
-
#token ⇒ Object
Reads the assertion from the given formvars.
Constructor Details
#initialize(env) ⇒ Request
Returns a new instance of Request.
56 57 58 |
# File 'lib/rack/oauth2/assertion_profile.rb', line 56 def initialize(env) super(env) end |
Instance Method Details
#assertion_profile? ⇒ Boolean
Returns a value indicating whether the type the of authorization request is assertion
62 63 64 |
# File 'lib/rack/oauth2/assertion_profile.rb', line 62 def assertion_profile? self.params["type"] =~ /assertion/i end |
#format ⇒ Object
Reads from the formvars the format of the set assertion
68 69 70 |
# File 'lib/rack/oauth2/assertion_profile.rb', line 68 def format (self.params["format"] or "saml").downcase.to_sym end |
#token ⇒ Object
Reads the assertion from the given formvars
73 74 75 |
# File 'lib/rack/oauth2/assertion_profile.rb', line 73 def token self.params["assertion"] end |