HTTPAuthorizationCredentials
The HTTP authorization credentials in the result of using HTTPBearer or
HTTPDigest in a dependency.
Attributes
| Attribute | Type | Description |
|---|---|---|
| scheme | str | The HTTP authorization scheme extracted from the header value. |
| credentials | str | The HTTP authorization credentials extracted from the header value. |
Constructor
Signature
def HTTPAuthorizationCredentials(
scheme: str,
credentials: str
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| scheme | str | The HTTP authorization scheme extracted from the header value, such as 'Bearer' or 'Digest'. |
| credentials | str | The actual token or credential string extracted from the authorization header. |