Auth¶
AuthStrategy ¶
ApiKeyAuth ¶
Bases: AuthStrategy
Sends a static API key in a configurable request header.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
api_key
|
str
|
The API key value. |
required |
header
|
str
|
Header name to use (default: |
'X-Api-Key'
|
Source code in merchants/auth.py
TokenAuth ¶
Bases: AuthStrategy
Sends a bearer-style token in a configurable header.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
token
|
str
|
The token value. |
required |
header
|
str
|
Header name (default: |
'Authorization'
|
scheme
|
str
|
Prefix placed before the token (default: |
'Bearer'
|