View as Markdown

SDK reference · Verifiers

verify_ap2_user_mandate

verify_ap2_user_mandate in provenanceauth-verify (Python), Verifiers. Verify an AP2 v0.2 mandate SD-JWT (or delegate chain) against issuers ([{"name", "jwks"}], your own list) and expected (origin, checkout_jwt, payee_id, amount in minor units, currency).

Signature

provenanceauth_verify.verify_ap2_user_mandate(serialized: str, issuers: list, expected: dict, now: Optional[int] = …, kb_max_age_seconds: int = …, accept_chains: bool = …) -> Ap2Result

Parameters

serializedstrRequired
issuerslistRequired
expecteddictRequired
nowOptional[int]
kb_max_age_secondsint
accept_chainsbool

Returns

Ap2Result

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.