-
Notifications
You must be signed in to change notification settings - Fork 31
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
JWTAuthBackend RS256 algorithm verification error #27
Comments
That's odd. This middleware isn't doing anything too crazy with the keys or algorithm values, so I'm having trouble isolating this issue to a bug in the Can you try some things for me?
If the encode/decode test passes, but you still get the failure behavior with |
I stumbled on this thread, but I'm not sure how relevant it is yet: jpadilla/pyjwt#236 |
With PyJWT==1.7.1 everything is ok: |
Solved! Please update falcon-auth in pip repository. |
Hi,
In Auth backend:
jwt_auth = JWTAuthBackend(lambda token: None, private_key, algorithm='RS256')
token = jwt_auth.get_auth_token({"uid": "123"})
In Application backend:
auth_middleware = FalconAuthMiddleware(JWTAuthBackend(User.user_loader, public_key, algorithm='RS256'))
app = falcon.API(middleware=[auth_middleware])
Error in Application backend:
{ "title": "401 Unauthorized", "description": "The specified alg value is not allowed" }
The text was updated successfully, but these errors were encountered: