common_auth.verifiers.static
Constant-time verification of an explicitly configured static credential.
Classes
StaticVerifier
Compare extracted evidence to a trusted secret and return its bound principal.
Holds immutable settings and a resolver; no request framework, connection or caller-claimed identity is trusted. Injected sources remain caller-owned. Evidence is never retained in state, results or representations.
__init__
def __init__(config: StaticVerifierConfig, *, source: CredentialSource | None = None) -> NoneFields and properties declared here; inherited members belong to the bases above.
config
config = configverify
async def verify(evidence: str | SecretStr) -> AuthResult[PrincipalRef]Verify already-extracted evidence; the calling boundary checks its HTTP scheme.