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