class Beaver::CustomHeaderAuth

Utility class for custom header authorization.

Public Class Methods

apply(config, http_request) click to toggle source

Add custom authentication to the request. @param [HttpRequest] The HttpRequest object to which authentication will be added.

# File lib/beaver/http/auth/custom_header_auth.rb, line 12
def self.apply(config, http_request)
  http_request.add_header('App-Token', config.app_token)
end