Class: Doorkeeper::OAuth::RefreshTokenRequest

Inherits:
BaseRequest
  • Object
show all
Includes:
Helpers
Defined in:
lib/doorkeeper/oauth/refresh_token_request.rb

Instance Attribute Summary collapse

Attributes inherited from BaseRequest

#grant_type, #server

Attributes included from Validations

#error

Instance Method Summary collapse

Methods inherited from BaseRequest

#after_successful_response, #authorize, #find_or_create_access_token, #scopes, #server_config

Methods included from Validations

#valid?, #validate

Constructor Details

#initialize(server, refresh_token, credentials, parameters = {}) ⇒ RefreshTokenRequest

Returns a new instance of RefreshTokenRequest.


17
18
19
20
21
22
23
24
# File 'lib/doorkeeper/oauth/refresh_token_request.rb', line 17

def initialize(server, refresh_token, credentials, parameters = {})
  @server = server
  @refresh_token = refresh_token
  @credentials = credentials
  @original_scopes = parameters[:scope] || parameters[:scopes]
  @refresh_token_parameter = parameters[:refresh_token]
  @client = load_client(credentials) if credentials
end

Instance Attribute Details

#access_tokenObject (readonly)

Returns the value of attribute access_token


14
15
16
# File 'lib/doorkeeper/oauth/refresh_token_request.rb', line 14

def access_token
  @access_token
end

#clientObject (readonly)

Returns the value of attribute client


14
15
16
# File 'lib/doorkeeper/oauth/refresh_token_request.rb', line 14

def client
  @client
end

#credentialsObject (readonly)

Returns the value of attribute credentials


14
15
16
# File 'lib/doorkeeper/oauth/refresh_token_request.rb', line 14

def credentials
  @credentials
end

#missing_paramObject (readonly)

Returns the value of attribute missing_param


15
16
17
# File 'lib/doorkeeper/oauth/refresh_token_request.rb', line 15

def missing_param
  @missing_param
end

#refresh_tokenObject (readonly)

Returns the value of attribute refresh_token


14
15
16
# File 'lib/doorkeeper/oauth/refresh_token_request.rb', line 14

def refresh_token
  @refresh_token
end