-
-
Notifications
You must be signed in to change notification settings - Fork 421
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
OAuth2 Authentication for Google Service Account - jwt improperly generated #247
Comments
Here is exactly what I do:
Also, when I do in Python:
Then with the result:
I also receive the same error:
So it seems the jwt is not correctly generating |
👍 |
I am also going through a similar error? Have you resolved the issue? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I've had no problem connecting to Google APIs following your tutorial with web app credentials https://requests-oauthlib.readthedocs.io/en/latest/examples/google.html
However, I don't want to have to authorize everytime through the browser so I actually need service credentials https://developers.google.com/api-client-library/python/auth/service-accounts
I've been following #152, but when I do google.fetch_token(token_url), I always get an InvalidGrant Error:
But the value of aud is actually 'https://accounts.google.com/o/oauth2/token'
Any idea?
Thanks!
The text was updated successfully, but these errors were encountered: