google / gmail-oauth2-tools

Tools and sample code for authenticating to Gmail with OAuth2
Apache License 2.0
405 stars 211 forks source link

oauth2.py uses outdated urls #50

Closed mmackay055 closed 11 months ago

mmackay055 commented 2 years ago

When using oauth2.py I kept getting authentication errors when submitting the code to retrieve a new token. I found it was using https://accounts.google.com/o/oauth2/token to request tokens vs using https://oauth2.googleapis.com/token as stated in google's documentation.

I feel there is probably other outdated urls in the script as well.

junyer commented 11 months ago

Sorry, I don't believe that the "old" endpoints have either been removed or been slated for removal, so I'm not sure what was causing the errors. It's conceivable that oauth2.py could switch to the "new" endpoints, but I suspect that this would entail a dependency on https://github.com/googleapis/google-api-python-client or similar, which I'm not keen to adopt at this time.