Class: Doorkeeper::OAuth::PasswordAccessTokenRequest
- Inherits:
-
BaseRequest
- Object
- BaseRequest
- Doorkeeper::OAuth::PasswordAccessTokenRequest
- Includes:
- Helpers
- Defined in:
- lib/doorkeeper/oauth/password_access_token_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.
-
#credentials ⇒ Object
readonly
Returns the value of attribute credentials.
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
-
#resource_owner ⇒ Object
readonly
Returns the value of attribute resource_owner.
Attributes inherited from BaseRequest
Attributes included from Validations
Instance Method Summary collapse
-
#initialize(server, client, credentials, resource_owner, parameters = {}) ⇒ PasswordAccessTokenRequest
constructor
A new instance of PasswordAccessTokenRequest.
Methods inherited from BaseRequest
#after_successful_response, #authorize, #find_or_create_access_token, #scopes
Methods included from Validations
Constructor Details
#initialize(server, client, credentials, resource_owner, parameters = {}) ⇒ PasswordAccessTokenRequest
Returns a new instance of PasswordAccessTokenRequest.
15 16 17 18 19 20 21 22 23 |
# File 'lib/doorkeeper/oauth/password_access_token_request.rb', line 15 def initialize(server, client, credentials, resource_owner, parameters = {}) @server = server @resource_owner = resource_owner @client = client @credentials = credentials @parameters = parameters @original_scopes = parameters[:scope] @grant_type = Doorkeeper::OAuth::PASSWORD end |
Instance Attribute Details
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
13 14 15 |
# File 'lib/doorkeeper/oauth/password_access_token_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/password_access_token_request.rb', line 13 def client @client end |
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
13 14 15 |
# File 'lib/doorkeeper/oauth/password_access_token_request.rb', line 13 def credentials @credentials end |
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
13 14 15 |
# File 'lib/doorkeeper/oauth/password_access_token_request.rb', line 13 def parameters @parameters end |
#resource_owner ⇒ Object (readonly)
Returns the value of attribute resource_owner.
13 14 15 |
# File 'lib/doorkeeper/oauth/password_access_token_request.rb', line 13 def resource_owner @resource_owner end |