Skip to content

common_auth.authenticators.hmac

HMAC authentication through an explicit consumer request profile.

Classes

HmacAuthenticator

Bases: BaseAuthenticator

Resolve signing material and invoke a borrowed profile over prepared wire values.

The profile receives (request, signer, optional API-key material), computes its canonical bytes, and returns a signed Request. Provider field names, timestamps and signature placement stay in that explicit profile.

__init__

def __init__(config: HmacAuthConfig, *, profile: Callable[[Request, Signer, ApiKeyCredential | None], Request], source: CredentialSource | None = None) -> None