Class: Gonebusy::CustomAuth

Inherits:
Object
  • Object
show all
Defined in:
lib/gonebusy/http/auth/custom_auth.rb

Class Method Summary collapse

Class Method Details

.apply(http_request) ⇒ Object

Add custom authentication to the request.

Parameters:

  • The (HttpRequest)

    HttpRequest object to which authentication will be added.



7
8
9
10
11
12
13
14
# File 'lib/gonebusy/http/auth/custom_auth.rb', line 7

def self.apply(http_request)
  # TODO: Add your custom authentication here
  # The following properties are available to use
  #     Configuration.authorization
  #
  # Example: 
  # Add a header through: http_request.headers["key"] = "value"
end