Skip to main content

HTTPAuthorizationCredentials

The HTTP authorization credentials in the result of using HTTPBearer or HTTPDigest in a dependency.

Attributes

AttributeTypeDescription
schemestrThe HTTP authorization scheme extracted from the header value.
credentialsstrThe HTTP authorization credentials extracted from the header value.

Constructor

Signature

def HTTPAuthorizationCredentials(
scheme: str,
credentials: str
) - > null

Parameters

NameTypeDescription
schemestrThe HTTP authorization scheme extracted from the header value, such as 'Bearer' or 'Digest'.
credentialsstrThe actual token or credential string extracted from the authorization header.