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