-
Notifications
You must be signed in to change notification settings - Fork 11
feat: add DPoP sender-constrained token support (RFC 9449) #1544
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
base: main
Are you sure you want to change the base?
Changes from all commits
5d25079
09aeff4
466d2e9
bd860c8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,7 @@ | |
| SignUpOptions, | ||
| ) | ||
| from descope.descope_client import DescopeClient | ||
| from descope.dpop import get_dpop_thumbprint, validate_dpop_proof | ||
| from descope.exceptions import ( | ||
| API_RATE_LIMIT_RETRY_AFTER_HEADER, | ||
| ERROR_TYPE_API_RATE_LIMIT, | ||
|
|
@@ -65,6 +66,8 @@ | |
| "LoginOptions", | ||
| "SignUpOptions", | ||
| "DescopeClient", | ||
| "get_dpop_thumbprint", | ||
| "validate_dpop_proof", | ||
| "API_RATE_LIMIT_RETRY_AFTER_HEADER", | ||
|
Comment on lines
66
to
71
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The module-level |
||
| "ERROR_TYPE_API_RATE_LIMIT", | ||
| "ERROR_TYPE_SERVER_ERROR", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 09aeff4:
validate_dpop_proofindescope/dpop.pynow has the same parameter order asAuth.validate_dpop_proofandDescopeClient.validate_dpop_proof:(session_token, dpop_proof, method, request_url). Also updated the call site inauth.pyto match.