Skip to main content

Module dpop

Module dpop 

Source
Expand description

RFC 9449 DPoP (Demonstrating Proof-of-Possession) proof verification.

Verifies DPoP JWT proofs presented at the token endpoint or as Authorization: DPoP on resource requests.

DPoP proofs carry:

  • jwk in the header — the ephemeral client key (used to verify signature)
  • htm — HTTP method
  • htu — HTTP URI (scheme + host + path, no query)
  • iat — issued-at (must be within ±60s of server clock)
  • jti — unique identifier (replay prevention)
  • ath — base64url(SHA-256(access_token)) — required when the proof accompanies an access token on a resource request

Supported algorithms:

  • EdDSA (Ed25519) — native hyprstream identity keys
  • ES256 (ECDSA P-256 + SHA-256) — atproto interop (required by atproto OAuth)

Structs§

DpopProof
Parsed and verified DPoP proof.

Enums§

DpopError
DpopKey
The public key from a verified DPoP proof, algorithm-polymorphic.

Functions§

verify_dpop_proof
Verify a DPoP proof JWT string.