-
Notifications
You must be signed in to change notification settings - Fork 315
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
JWT can't be verified #336
Comments
We have an open pull request to add support for ES256: #157. To add some context: At the time this library was written, there were no Google products that required ES256. With the launch of Cloud IAP, that has changed. We recommend you take the approach of the IAP documentation for Python and use the Thank you! |
Thanks for your response, the problem is that I can't use the jwt library since I am using App Engine and Python 3 and this library won't work on app engine |
The problem with that workaround for me is that the security team won't allow me to use the ecda pure python library due to security concerns with that library |
Hi @agmezr, could you confirm which version of App Engine you are using? You should be able to pyjwt (and other libraries using |
I am using python 3.7 ( |
I think that implementation relies on the ECDA pure python implementation. I have tried using that one and if I recall correctly when it verified a JWT it fallback to the ECDA python implementation: try:
from jose.backends.cryptography_backend import CryptographyECKey as ECKey # noqa: F401
except ImportError:
from jose.backends.ecdsa_backend import ECDSAECKey as ECKey # noqa: F401 I might be wrong, I will do some tests |
I am trying to validate a JWT generated by Google IAP based on this example but it seems that verifying the token causes problems on the google.auth.jwt module
I created this token as an example using the tool in https://jwt.io::
And got the following error:
It seems weird that the jwt module can't decode a token created with the EC256 algorithm since is the algorithm used by Google IAP.
Any idea of why this is happening?
Environment
google-auth
version: 1.6.3Thanks!
The text was updated successfully, but these errors were encountered: