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 = …) -> Ap2ResultParameters
serializedstrRequiredissuerslistRequiredexpecteddictRequirednowOptional[int]kb_max_age_secondsintaccept_chainsbool
Returns
Ap2Result
HTTP operation
Runs locally, with no request to the API.