sams_client.auth – Client Authentication Methods

Public

class SamsPublicAuth

Public Authentication instance

apply_headers(headers: Dict[str, Any])

Returns the request header

Parameters

headers – Dictionary containing request headers

Return type

dict

Returns

Return back the headers

Basic

class SamsBasicAuth(api_key)

Basic Authentication instance

apply_headers(headers: Dict[str, Any])

Applies Basic Authentication to the request header

Parameters

headers (dict) – Dictionary containing request headers

Return type

dict

Returns

The headers with Authorization key applied