Expand description
DPoP (Demonstrating Proof of Possession) implementation for OAuth 2.0. DPoP (Demonstration of Proof-of-Possession) implementation.
RFC 9449 compliant DPoP token generation with automatic retry middleware for nonce challenges and ES256 signature support.
Structs§
- Dpop
Retry - Retry middleware for handling DPoP nonce challenges in HTTP requests.
- Dpop
Validation Config - Configuration for DPoP JWT validation.
Functions§
- auth_
dpop - Creates a DPoP proof token for OAuth authorization requests.
- extract_
jwk_ thumbprint - Extracts the JWK thumbprint from a DPoP JWT.
- is_
dpop_ error - Parses the value of the “WWW-Authenticate” header and returns true if the inner “error” field is either “invalid_dpop_proof” or “use_dpop_nonce”.
- request_
dpop - Creates a DPoP proof token for OAuth resource requests.
- validate_
dpop_ jwt - Validates a DPoP JWT and returns the JWK thumbprint if validation succeeds.