Skip to content
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

Added support for whitelist validation of the alg header #110

Merged
merged 2 commits into from
Mar 18, 2015

Conversation

mark-adams
Copy link
Contributor

Added an argument on the PyJWT object and on the decode method to allow a list of valid values for alg to be specified. The value specified in the decode method overrides the value for the PyJWT object. In addition, registering and unregistering algorithms adds and removes (respectively) them from the PyJWT object's whitelist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants