Class: Doorkeeper::OAuth::IdTokenResponse
- Inherits:
-
BaseResponse
- Object
- BaseResponse
- Doorkeeper::OAuth::IdTokenResponse
- Includes:
- OAuth::Helpers
- Defined in:
- lib/doorkeeper/oauth/id_token_response.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#auth ⇒ Object
Returns the value of attribute auth.
-
#id_token ⇒ Object
Returns the value of attribute id_token.
-
#pre_auth ⇒ Object
Returns the value of attribute pre_auth.
Instance Method Summary collapse
-
#initialize(pre_auth, auth, id_token) ⇒ IdTokenResponse
constructor
A new instance of IdTokenResponse.
- #redirect_uri ⇒ Object
- #redirectable? ⇒ Boolean
Constructor Details
#initialize(pre_auth, auth, id_token) ⇒ IdTokenResponse
Returns a new instance of IdTokenResponse.
8 9 10 11 12 |
# File 'lib/doorkeeper/oauth/id_token_response.rb', line 8 def initialize(pre_auth, auth, id_token) @pre_auth = pre_auth @auth = auth @id_token = id_token end |
Instance Attribute Details
#auth ⇒ Object
Returns the value of attribute auth.
6 7 8 |
# File 'lib/doorkeeper/oauth/id_token_response.rb', line 6 def auth @auth end |
#id_token ⇒ Object
Returns the value of attribute id_token.
6 7 8 |
# File 'lib/doorkeeper/oauth/id_token_response.rb', line 6 def id_token @id_token end |
#pre_auth ⇒ Object
Returns the value of attribute pre_auth.
6 7 8 |
# File 'lib/doorkeeper/oauth/id_token_response.rb', line 6 def pre_auth @pre_auth end |
Instance Method Details
#redirect_uri ⇒ Object
18 19 20 |
# File 'lib/doorkeeper/oauth/id_token_response.rb', line 18 def redirect_uri Authorization::URIBuilder.uri_with_fragment(pre_auth.redirect_uri, redirect_uri_params) end |
#redirectable? ⇒ Boolean
14 15 16 |
# File 'lib/doorkeeper/oauth/id_token_response.rb', line 14 def redirectable? true end |