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

This app is blocked #141

Open
TonalidadeHidrica opened this issue Feb 26, 2021 · 7 comments
Open

This app is blocked #141

TonalidadeHidrica opened this issue Feb 26, 2021 · 7 comments

Comments

@TonalidadeHidrica
Copy link

When I tried to authorize via browser (run skicka init and then skicka ls without setting any value), I got the following error after clicking my e-mail address:

This app is blocked
This app tried to access sensitive info in your Google Account. To keep your account safe, Google blocked this access.

Why did it happen and how can I workaround?

@max-mapper
Copy link

I got the same error

@iquasere
Copy link

iquasere commented Mar 9, 2021

Can this be looked upon? It breaks functionality of the tool

@mmp
Copy link
Contributor

mmp commented Mar 9, 2021

A workaround, unless/until someone fixes this on the google side, is to create your own OAuth client id, as described here. Then, edit this line in skicka.go:

const clientId = "952282617835-siotrfjbktpinek08hrnspl33d9gho1e.apps.googleusercontent.com"

and replace it with the one you generated.

@iquasere
Copy link

This is the right fix

@gedw99
Copy link

gedw99 commented Mar 22, 2021

thanks @mmp :)

@Beafantles
Copy link

Same error aswell

@psifertex
Copy link

psifertex commented May 6, 2021

I get:

skicka: attempting to launch browser to authorize.
(Re-run skicka with the -no-browser-auth option to authorize directly.)
skicka: error with OAuth2 Authorization: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_request",
  "error_description": "client_secret is missing."
} 

when attempting to use the workaround of creating a manual oath2 id.

[EDIT]

Ahh, found the issue -- you have to edit your ~/.skicka.config file to add your secret. Here's the workflow that worked for me (note you don't have to edit the source either this way):

  1. Create an oath2 "desktop" credential from the GCP page
  2. Uncomment the clientid line (by removing the ;) from ~/.skicka.config and set the value to the clientid from the above page
  3. Uncomment the clientsecret line (by removing the ;) from ~/.skicka.config and set the value to the secret from the above page

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