-
Notifications
You must be signed in to change notification settings - Fork 355
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
Google drive grants only 7 days access #887
Comments
Yes, Google limits the refresh token for test applications to 7 days, but you can move it to production to remove that limitation (see #882). |
Thanks a lot. I changed the app to production. How do I force google-drive-ocaml-fuse to forget its state so that I can reauthorize and get a new access token. I've tried clearing the cache with |
@astrada which step of the installation https://github.com/astrada/google-drive-ocamlfuse/wiki/Installation#installing-with-opam-on-nobara-linux creates the directory |
That directory is created the first time you run the application. |
Thanks. Then to forget the credentials, I just have to delete |
Thank you but isn't there easier way just like rclone provides? |
Is this because the access token has expired? |
Yes, I think so. Unfortunately the error reporting must go through the FUSE interface that is not suited to report friendly errors. If you want to be sure, you should enable debug logs and check the real error there. |
@astrada and then authorized
which caused this warning: But after completing the OAuth authorisation process I still got the Input/Output error:
so I ran:
then:
, and finally
succeeded. I'm not sure whether removing the GoogleDrive directory or I know that the Google hasn't verified this app warning can be avoided by submitting a verification request to Google like the warning says. Do you have any idea how long this verification request takes and what it requires? I don't plan on publishing this Desktop app so no one else but me will use it, however I'm curious about the verification process and what others think of it. |
It looks like you can push your app to production without Google verification: rclone/rclone#7963 (comment) |
I created a new client id and secret for a google drive desktop client application but I was only able to give access to external users (@gmail.com) because I created the client app using a gmail account and only users in a google workspace (@custom-domain) can be an internal user. I then had to give access to a test user because I didn't want the client app to be held in a long verification process if I publish it.
The problem is that as an external user I had my google drive access limited to 7 days. I want unlimited access that is only removed if
google-drive-ocamlfuse
unmounts google drive.My system is fedora linux and I installed ocaml using the fedora package manager as described in: https://github.com/astrada/google-drive-ocamlfuse/wiki/Installation#installing-with-opam-on-nobara-linux.
The text was updated successfully, but these errors were encountered: