astrada / google-drive-ocamlfuse

FUSE filesystem over Google Drive
https://astrada.github.io/google-drive-ocamlfuse/
MIT License
5.6k stars 354 forks source link

Can't login #883

Open Zerogoki00 opened 3 months ago

Zerogoki00 commented 3 months ago

Hello, I followed you guide and created application with Google Drive API. I paste the correct app id and secret key, but I get this error from google

You can’t sign in because new app sent an invalid request. You can try again later, or contact the developer about this issue. Learn more about this error If you are a developer of new app, see error details. Error 400: invalid_request

The error is

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 flowName=GeneralOAuthFlow
astrada commented 3 months ago

When you create your OAuth client id, you have to choose Desktop Application. Configuring the oob callback doesn't work anymore.

smherrmann commented 2 months ago

The problem also occurs if you are using a (very) outdated version of google-drive-ocamlfuse... you might want to check the version to make sure you are actually running an up-to-date version

claggner commented 2 months ago

I got the same error when switching from Testing to Production (as suggested elsewhere to avoid the 7 day access expiration). Switching back to Testing fixed it for me, but I'd love to be able to get rid of the access expiration.