-
-
Notifications
You must be signed in to change notification settings - Fork 239
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
allow other authorization type to pass #82
Comments
If you just want to change the header name that sends in the JWT, you can do that with the If you're saying you want it to not error out when using If that doesn't work for you, let me know, and I'll look closer at this and see if something could be done without too much trouble on this extension. Cheers. |
Thanks for the quick response! |
Fair enough. I'll poke at it this weekend and come up with something. Cheers. |
thanks!! |
This fixes the case of a different authorization header (for example, into another authorization system) causing jwt_optional to return the invalid header error handler. This is technically a breaking change, but I would argue that this is more of a bug fix and that no one is (or should be) relying on jwt_optional to send back an InvalidHeaderError if they send in a different header then this extension expects. Refs #82
Got this released in version 3.3.1. Instead of another flag, I just set it up to always ignore Cheers. |
if a flask app supports multiple authorization mechanisms, eg: JWT and hmacv4, how should I use this library?
From what I see in the decorator, it raises execption as long as it finds the authorization type doesn't match what's configured.
Can you support another setting flag to allow alternative authorization type, so that the jwt_optional just silently do nothing if the type is not bearer?
The text was updated successfully, but these errors were encountered: