Class: Warden::OAuth2::Strategies::RefreshToken

Inherits:
Client
  • Object
show all
Defined in:
lib/warden/oauth2/strategies/refresh_token.rb

Instance Attribute Summary

Attributes inherited from Client

#client, #client_id, #client_secret

Attributes inherited from Base

#error_description

Instance Method Summary collapse

Methods inherited from Client

#authenticate!, #client_from_http_basic, #client_from_request_params, #error_status, #public_client?

Methods inherited from Base

#error_status, #store?

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/warden/oauth2/strategies/refresh_token.rb', line 5

def valid?
  params['grant_type'] == 'refresh_token'
end