Class: Doorkeeper::OAuth::AuthorizationCodeRequest
- Inherits:
-
BaseRequest
- Object
- BaseRequest
- Doorkeeper::OAuth::AuthorizationCodeRequest
- Defined in:
- lib/doorkeeper/oauth/authorization_code_request.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
readonly
Returns the value of attribute access_token.
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#code_verifier ⇒ Object
readonly
Returns the value of attribute code_verifier.
-
#grant ⇒ Object
readonly
Returns the value of attribute grant.
-
#invalid_request_reason ⇒ Object
readonly
Returns the value of attribute invalid_request_reason.
-
#missing_param ⇒ Object
readonly
Returns the value of attribute missing_param.
-
#redirect_uri ⇒ Object
readonly
Returns the value of attribute redirect_uri.
Attributes inherited from BaseRequest
Attributes included from Validations
Instance Method Summary collapse
-
#initialize(server, grant, client, parameters = {}) ⇒ AuthorizationCodeRequest
constructor
A new instance of AuthorizationCodeRequest.
Methods inherited from BaseRequest
#after_successful_response, #authorize, #find_or_create_access_token, #scopes
Methods included from Validations
Constructor Details
#initialize(server, grant, client, parameters = {}) ⇒ AuthorizationCodeRequest
Returns a new instance of AuthorizationCodeRequest.
16 17 18 19 20 21 22 23 |
# File 'lib/doorkeeper/oauth/authorization_code_request.rb', line 16 def initialize(server, grant, client, parameters = {}) @server = server @client = client @grant = grant @grant_type = Doorkeeper::OAuth::AUTHORIZATION_CODE @redirect_uri = parameters[:redirect_uri] @code_verifier = parameters[:code_verifier] end |
Instance Attribute Details
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
13 14 15 |
# File 'lib/doorkeeper/oauth/authorization_code_request.rb', line 13 def access_token @access_token end |
#client ⇒ Object (readonly)
Returns the value of attribute client.
13 14 15 |
# File 'lib/doorkeeper/oauth/authorization_code_request.rb', line 13 def client @client end |
#code_verifier ⇒ Object (readonly)
Returns the value of attribute code_verifier.
13 14 15 |
# File 'lib/doorkeeper/oauth/authorization_code_request.rb', line 13 def code_verifier @code_verifier end |
#grant ⇒ Object (readonly)
Returns the value of attribute grant.
13 14 15 |
# File 'lib/doorkeeper/oauth/authorization_code_request.rb', line 13 def grant @grant end |
#invalid_request_reason ⇒ Object (readonly)
Returns the value of attribute invalid_request_reason.
13 14 15 |
# File 'lib/doorkeeper/oauth/authorization_code_request.rb', line 13 def invalid_request_reason @invalid_request_reason end |
#missing_param ⇒ Object (readonly)
Returns the value of attribute missing_param.
13 14 15 |
# File 'lib/doorkeeper/oauth/authorization_code_request.rb', line 13 def missing_param @missing_param end |
#redirect_uri ⇒ Object (readonly)
Returns the value of attribute redirect_uri.
13 14 15 |
# File 'lib/doorkeeper/oauth/authorization_code_request.rb', line 13 def redirect_uri @redirect_uri end |