Class: TestPack1::CustomQueryAuth

Inherits:
Object
  • Object
show all
Defined in:
lib/test_pack_1/http/auth/custom_query_auth.rb

Overview

Utility class for custom query_parameter authorization.

Class Method Summary collapse

Class Method Details

.apply(http_request) ⇒ Object

Add custom authentication to the request. be added.

Parameters:

  • The (HttpRequest)

    HttpRequest object to which authentication will



12
13
14
# File 'lib/test_pack_1/http/auth/custom_query_auth.rb', line 12

def self.apply(http_request)
  http_request.add_query_parameter('apiToken', Configuration.api_token)
end