google / skicka

Command-line utility for working with Google Drive. Join the mailing list at https://groups.google.com/forum/#!forum/skicka-users.
Apache License 2.0
1.3k stars 118 forks source link

Deleted client error #145

Open nouhouari opened 2 years ago

nouhouari commented 2 years ago

Hello, I'm trying to use skicka on MacOs Monterey with Docker. When I run the following command:

docker run --rm -it --entrypoint "" satackey/skicka sh -c "skicka -no-browser-auth ls"

and copy/paste the url into the browser, I get a "Error 401 : deleted_client The OAuth client was deleted."

jowagner commented 1 year ago

I can confirm the error on a Linux desktop PC with skicka ls after skicka init.

Details Webbrowser location: https://accounts.google.com/signin/oauth/error?authError=Cg5kZ[redacted]gkQM%3D&client_id=9522[redacted]ho1e.apps.googleusercontent.com Text in browser window: ``` Sign in with Google Authorization Error Error 401: deleted_client The OAuth client was deleted. English (United States) Help Privacy Terms ```
jowagner commented 1 year ago

Workaround (tested only with ls -ll as I'm only interested in the md5 fingerprints of files):

  1. Create a project in your google cloud console
  2. Add scope > Update selected scopes > Google API Library > Workspace > Google Drive API > Enable
  3. Enter other details and save
  4. APIs & Services > Credentials > Create Credentials > OAuth client ID
  5. Copy "Your Client ID" and "Your Client Secret" to ~/.skicka.config clientid and clientsecret and remove the ;

(I've no idea whether my employer, a google workspace for education customer, is charged for this project and how much.)