Class: Pinch::CustomAuthUtility

Inherits:
Object
  • Object
show all
Defined in:
lib/pinch/custom_auth_utility.rb

Class Method Summary collapse

Class Method Details

.append_custom_auth_params(headers) ⇒ Object

Appends the necessary OAuth credentials for making this authorized call

Parameters:

  • The (Hash)

    out going request to access the resource



7
8
9
10
11
12
13
14
15
# File 'lib/pinch/custom_auth_utility.rb', line 7

def self.append_custom_auth_params(headers)
  # TODO: Add your custom authentication here
  # The following properties are available to use
  #     Configuration.x_api_token
  #     Configuration.x_api_email
  #
  # i.e., Add a header through:
  #     headers["key"] = "value"
end