Class: Restforce::Middleware::Authentication::ClientCredential

Inherits:
Restforce::Middleware::Authentication show all
Defined in:
lib/restforce/middleware/authentication/client_credential.rb

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

#paramsObject



7
8
9
10
11
# File 'lib/restforce/middleware/authentication/client_credential.rb', line 7

def params
  { grant_type: 'client_credentials',
    client_id: @options[:client_id],
    client_secret: @options[:client_secret] }
end