iterative / PyDrive2

Google Drive API Python wrapper library. Maintained fork of PyDrive.
https://docs.iterative.ai/PyDrive2
Other
565 stars 70 forks source link

CommandLineAuth Generate Wrong Link #344

Open asklepi0s opened 4 months ago

asklepi0s commented 4 months ago

Trying to login to the Drive using CommandLineAuth() returns:

Errore 400: redirect_uri_mismatch

However when using LocalWebserverAuth() no errors are encountered.

Stardidi commented 3 months ago

Encountered the same issue. Showing more details gives:

Error 400: invalid_request
The out-of-band (OOB) flow has been blocked in order to keep users secure. Follow the Out-of-Band (OOB) flow migration guide linked in the developer docs below to migrate your app to an alternative method.
Request details: redirect_uri=urn:ietf:wg:oauth:2.0:oob

And links to this page: https://developers.google.com/identity/protocols/oauth2/resources/oob-migration

It seems this entire flow has been deprecated. I'm not too familiar with the Google's OAuth, but it seems one of the alternative's is hosting a small webpage on loopback: https://developers.google.com/identity/protocols/oauth2/native-app#redirect-uri_loopback