Class: Restforce::Middleware::Authentication::Token
- Inherits:
-
Restforce::Middleware::Authentication
- Object
- Faraday::Middleware
- Restforce::Middleware
- Restforce::Middleware::Authentication
- Restforce::Middleware::Authentication::Token
- Defined in:
- lib/restforce/middleware/authentication/token.rb
Overview
Authentication middleware used if oauth_token and refresh_token are set
Instance Method Summary collapse
Methods inherited from Restforce::Middleware::Authentication
#authenticate!, #call, #connection, #encode_www_form, #error_message
Methods inherited from Restforce::Middleware
#client, #connection, #initialize
Constructor Details
This class inherits a constructor from Restforce::Middleware
Instance Method Details
#params ⇒ Object
6 7 8 9 10 11 |
# File 'lib/restforce/middleware/authentication/token.rb', line 6 def params { grant_type: 'refresh_token', refresh_token: @options[:refresh_token], client_id: @options[:client_id], client_secret: @options[:client_secret] } end |