I've set up a Python app engine project with Cloud endpoints. I'm having a problem where when I test locally, the auth with the endpoints fails but it seems to work fine when I deploy to app engine.
Here is what I've done
I've deployed it and the auth works fine. When I deploy it locally, the auth works fine from the API explorer with OAuth enabled. But when I do a call from my Android app, I get this in the log:
ERROR 2014-01-22 23:29:07,006 users_id_token.py:367] Token info endpoint returned status 400: Invalid Value
I'm not sure what I'm missing.
I've just fixed what looks like the same problem, caused by not having pycrypto installed locally.
Try installing, e.g. with pip:
pip install pycrypto
The users_id_token.py module in the App Engine SDK seems to drop out of validating the id_token if pycrypto isn't installed. It then tries to validate the id_token as an auth_token which fails resulting in the error that you see.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With