Skip to content
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

401 errors #28

Open
mathstuf opened this issue Jul 10, 2020 · 2 comments
Open

401 errors #28

mathstuf opened this issue Jul 10, 2020 · 2 comments

Comments

@mathstuf
Copy link

Does this not work for non-GSuite accounts? I made the app and client ID. However, when I go through and get a token, all I ever get is a 401. There's no error message in the body of the response.

Has something changed that needs updated in the script?

@junyer
Copy link
Contributor

junyer commented Jul 24, 2023

In #53 (comment), I noted that the wiki page hasn't been updated for six years, so it could be that the instructions there are lacking – or just plain wrong – even for "normal" accounts. As of commit 944cffd, oauth2.py does actually work though...

@jesseclark
Copy link

Following these instructions from the gmail-ouath2-tools library worked for me:

NOTE: The OAuth2 OOB flow isn't a thing anymore. You will need to set the
application type to "Web application" and then add https://oauth2.dance/ as an
authorised redirect URI. This is necessary for seeing the authorisation code on
a page in your browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants