Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Cannot get OAuth #134

Open
jtgd opened this issue Aug 27, 2019 · 8 comments
Open

Cannot get OAuth #134

jtgd opened this issue Aug 27, 2019 · 8 comments

Comments

@jtgd
Copy link

jtgd commented Aug 27, 2019

$ skicka ls
skicka: error creating Google Drive client: Get https://www.googleapis.com/drive/v2/about?alt=json: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Bad Request"
}

$ skicka -no-browser-auth ls
skicka: error creating Google Drive client: Get https://www.googleapis.com/drive/v2/about?alt=json: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Bad Request"
}

Nothing opens in browser.

Is there a workaround?

(Arch Linux aur/skicka r272.70827bf-1)

@ardunn
Copy link

ardunn commented Oct 21, 2019

I am having same issue

@ClaraBing
Copy link

ClaraBing commented Dec 17, 2019

I'm having the same issue too; it used to work before but gave this error today.

Update: I removed the cache files (~/.skicka*cache*) to sign in to my account again, and got this error message:

"Sign in with Google temporarily disabled for this app
This app has not been verified yet by Google in order to use Google Sign In."

Looks like skicka is now disabled?

@satackey
Copy link

I have successfully logged in with an account that has used skicka.
However, for new accounts that sign in to skicka, I received the error message "Sign in with Google temporarily disabled ...".

I think the cause is that the default credentials embedded in skicka have not passed Google's review.
This was solved by creating your own credentials.

Here are the steps:

  1. Create a project on Google Cloud Plarform.
  2. Select API & Services-> Library in the menu and enable Google Drive API.
  3. Select Create OAuth client ID and get Client ID and Client Secret.
  4. Comment out and rewrite clientid and clientsecret in the [google] section of .skicka.config.

@mxdpeep
Copy link

mxdpeep commented Feb 2, 2020

abandon skicka, use rclone

@jtgd
Copy link
Author

jtgd commented Feb 4, 2020

Heh, thanks. Already did.

@jtgd jtgd closed this as completed Feb 4, 2020
@agoode
Copy link
Contributor

agoode commented Apr 30, 2020

This is still a problem. I think the instructions here are still relevant:
https://github.com/google/skicka/blob/9c807e9f5e3e66e9fa588511f058628ea5db89be/README.md

Please leave this issue open so people can find this workaround.

@agoode agoode reopened this Apr 30, 2020
@lukewys
Copy link

lukewys commented Sep 29, 2020

Hi, @satackey , I wrote the clientid and clientsecret according to your instruction, but afterwards when I run skicka ls it still let me get the authorization. Is there anything that needs to perform after changing the config file? Thanks in advance.

@lukewys
Copy link

lukewys commented Sep 29, 2020

Hi, @satackey , I wrote the clientid and clientsecret according to your instruction, but afterwards when I run skicka ls it still let me get the authorization. Is there anything that needs to perform after changing the config file? Thanks in advance.

I succeeded. I clicked advance option in the link provided by skicka ls -no-browser-auth, and get the code.

SarahHannes added a commit to SarahHannes/tweet-sentiment that referenced this issue Sep 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants