-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Support For Passing Nonce and Configurable JWT Expiry (#22)
* Add Support For Passing Nonce and Configurable JWT Expiry * Added support to the Python client to allow the nonce to be set in the auth URL * Added a client parameter to allow JWT expiry to be configured. * Updated some tests to check nonce validation. * Configurable Nonce/Expiry -- PR Review Suggestions * Client now throws an exception if an out of range expiry was given on initialization; the value is furthermore clamped to between 0 seconds and 5 minutes where it's used. * Doc strings have been updated to reflect what the underlying OIDC API specifies around the state and nonce. * Tests have been added to verify that the expiry is checked correctly. * * Fixed flake8 errors on a test.
- Loading branch information
Showing
3 changed files
with
90 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters