-
Notifications
You must be signed in to change notification settings - Fork 4
feat: Add DPoP authentication support #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Rita Zerrizuela <[email protected]>
How is the library handling the case when the Authorization header contains a malformed access token (e.g. |
How is the library handling the case where more than one |
How is the library handling the case when the the DPoP proof contains extra claims in the payload, and extra properties in the header? These should be ignored. |
Thanks. Seems that there is an instance where the |
…eturn 400 status code with appropriate error messages
…te test assertions
📋 Changes
This PR implements DPoP (RFC 9449) support for auth0-api-python, enabling sender-constrained OAuth 2.0 access tokens using cryptographic proof of possession for enhanced API security.
Note
DPoP is currently in Early Access. Contact Auth0 support to enable it for your tenant.
✨ Features
verify_request()
method automatically detects and validates Bearer or DPoP schemeshtm
,htu
,ath
,jti
with timing checkshtu
claims with proper scheme and port handling🔧 API Changes
verify_request()
method toApiClient
for unified authentication scheme detectionverify_dpop_proof()
method for direct DPoP proof verificationApiClientOptions
with DPoP configuration parameters (dpop_enabled
,dpop_required
,dpop_iat_leeway
,dpop_iat_offset
)InvalidDpopProofError
,InvalidAuthSchemeError
📚 Core Components
📖 Documentation
README.md
with comprehensive features overview and DPoP authentication sectionEXAMPLES.md
with authentication scheme examples📎 References
🧪 Testing
This change adds test coverage
This change has been tested on the latest version of the platform/language or why not
Contributor Checklist