Skip to content
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

Sign in with Google temporarily disabled for this app #497

Closed
johnnypea opened this issue Nov 15, 2019 · 42 comments
Closed

Sign in with Google temporarily disabled for this app #497

johnnypea opened this issue Nov 15, 2019 · 42 comments

Comments

@johnnypea
Copy link

Anyone experiencing this issue when trying to initialise the Google calendar? Is there some problem with the app @insanum ? Thanks.

This app has not been verified yet by Google in order to use Google Sign In.

@insanum
Copy link
Owner

insanum commented Nov 15, 2019

Yes, I got a notification from Google about this a couple days ago. I submitted the gcalcli API scope usage for verification by Google. The form said it could take a couple weeks.

If you know someone who works for Google... ask them to help expedite/guide this along. :-)

@jester02k
Copy link

Hello I'm getting this error too after a reinstall of my system can someone explain whats going on is it my system or google's. I have never had a problem with Gcalcli an miss it.

@zripka
Copy link

zripka commented Nov 24, 2019

Same here, I'm trying to install it for the first time and I'm getting the same message.

@rpietro
Copy link

rpietro commented Nov 26, 2019

same here

@MarSoft
Copy link

MarSoft commented Nov 27, 2019

If you created client id and client secret from dev account associated to your google account then on "App not verified" screen you can bypass it by clicking "Additional" and then "Go to (project name) page".

@rpietro
Copy link

rpietro commented Nov 28, 2019

@MarSoft I don't get that option on Chromium or Firefox.

@eethann
Copy link

eethann commented Dec 3, 2019

Can users create their own app as a work-around?

@eethann
Copy link

eethann commented Dec 3, 2019

Confirming that using the --client-id and --client-secret arguments to authenticate works. This article is a bit outdated but is the general idea: create an OAuth web login app in the Google developer console, then enable the calendar API for it. Works!

This is probably the best approach, actually, if you are concerned about security (making sure you're not granting a 3rd party app access to your cal).

@maphew
Copy link

maphew commented Dec 8, 2019

the process at https://github.com/insanum/gcalcli#login-information is more up to date than the blog post link on eethan's comment. There is still a "This app isn't verified" warning screen, but expand [Advanced] link at bottom and then use [Go to gcalcli (unsafe)] link under that.

@anthrolisp
Copy link

I'm also getting the following error:

This app has not been verified yet by Google in order to use Google Sign In.

I'm unable to get the --client-id and --client-secret arguments to work, and the "[Advanced] link at the bottom is not visible for me.

Any ideas? Many thanks in advance!

@maphew
Copy link

maphew commented Jan 3, 2020

I tried to setup another computer. Google isn't showing the [Advanced] and [Go to gcalcli (unsafe)] links anymore for me either.

@aristosv
Copy link

aristosv commented Jan 3, 2020

Are there any workarounds to make this work?

@awkwardengineer
Copy link

any update on when Google might approve? I'm still hitting the same "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."

@jester02k
Copy link

jester02k commented Jan 6, 2020

I have been waiting for over a month is this going to be fixed or what or has it been abandoned? Any info would be appreciated.
UPDATE
I finally got this to work using this post #497 (comment) The google page has changed so I had to do some poking around but not too difficult to get going. Also you can not use Firefox either Chrome or Chromium just keep authorizing and it will produce the code needed for the app.

@jcrowgey
Copy link
Collaborator

jcrowgey commented Jan 7, 2020

So far, it seems like google hasn't invalidated any existing oauth tokens, so I've still been able to use gcalcli as normal. I did move my token out of the way and try to go through the sign in process using firefox. I also didn't see the "Advanced" option that some users reported. It would be nice to get to the bottom of that: exactly who sees "Advanced" and why.

EDIT: I suppose the reason why is that I just used the secret and id provided in gcalcli rather than making a new id and secret in the google dev console. @aristov @maphew: have you tried setting up your own client id and secret in the google dev page?

@aristosv
Copy link

aristosv commented Jan 7, 2020

Yes. Once you set up a new id and secret, then the Advanced option appears and you can create the 2 authentication files.

@ripperle
Copy link

@aristosv Today I tried to install gcalcli and had the same problem. How do you set up a new ID and secret?

@pjotrp
Copy link

pjotrp commented Feb 11, 2020

The following worked for me: login to your google account and enable Google Calendar API with OAuth 2.0 Client IDs . Copy the client ID credentials. Next remove any old settings

  rm ~/.gcalc*

Next login with credentials

 ~/.local/bin/gcalcli --xxxx.apps.googleusercontent.com --client-secret=XXXX calw

Now, critically, you get a login in the browser which says the app is temporarily disabled. Click on the 'Advanced' link (which only shows up when you use credentials) and go to gcalcli and allow all. It will end with 'The authentication flow has completed.'. This should show your calendar, now you can run without credentials

  ~/.local/bin/gcalcli calw

@sadid
Copy link

sadid commented Feb 12, 2020

I can confirm that @pjotrp solution worked.

@slosar
Copy link

slosar commented Feb 26, 2020

Sorry for being a noob, but how do I " enable Google Calendar API with OAuth 2.0 Client IDs "? I've been looking around my google settings and google calendar settings and can't find this option.

@abers
Copy link

abers commented Feb 29, 2020

Same issue as with @slosar, absolutely no idea how to securely setup OAuth 2.0 Client IDs. When trying I'm stuck at stage where forced to setup a OAuth consent screen but unable to restrict it to Internal only. Any step-by-step instructions available? The ones on the github linked by @maphew don't explain how to deal with - "To create an OAuth client ID, you must first set a product name on the consent screen."

Edit:

  1. Go to OAuth consent screen from sidebar
  2. Create as External user type
  3. On next screen give it a name and hit save
  4. Go to Credentials from sidebar
  5. Click Create Credentials from top, then OAuth Client ID in the dropdown
  6. Choose Other, enter any name you want, and hit create
  7. You now have your client ID and secret
  8. In your terminal run "gcalcli --client-id "djfldsjl" --client-secret "djfaksdf" agenda
  9. It'll open login screen in browser, login, when get error page click advanced, select gcalcli and allow all.

@jester02k
Copy link

This has worked for me but make sure you are using Chrome or Chromium not Firefox. That is where I see the other button (I can't remember it's name) and it steps through allowing it at the end you get a security code. But I can say that I have to run this every once and a while to reauthorize gcalcli it just fails.

@pjotrp
Copy link

pjotrp commented Mar 1, 2020

I use firefox only. It worked as described.

AdamVig added a commit to AdamVig/dotfiles that referenced this issue Mar 3, 2020
This reverts commit 8c27218.

The CLI's OAuth permissions had been revoked and I was unable to set
up my own through my company's Google Apps account.

See insanum/gcalcli#497.
@tuckerconnelly
Copy link

There's a button on this page that automates a lot of the process for getting the client id + secret, just need to click it: https://developers.google.com/calendar/quickstart/go

Also not sure if this matters, but @pjotrp it looks like your comment above is missing client-id=, should be:

 ~/.local/bin/gcalcli --client-id=xxxx.apps.googleusercontent.com --client-secret=XXXX calw

@Hitkul
Copy link

Hitkul commented Apr 10, 2020

Just tried the method suggested by @pjotrp (created client-id by @tuckerconnelly suggestion) but I did not see any 'Advanced' link. Tested with both Brave and Chrome browser. Any idea what can I try next?

@squiter
Copy link

squiter commented Apr 16, 2020

Just like @Hitkul I followed the instructions and can't see the 'Advanced' link in Chrome neither Firefox :(

@jcrowgey
Copy link
Collaborator

I'm guessing that the folks this isn't working for haven't set up their developer console.

@dannyshaw
Copy link

the configuration parameters are --client_id and --client_secret (note then underscores).

and NOT --client-id and --client-secret as incorrectly specified in the docs and all the examples above.

It must have changed at some point.

@Hitkul
Copy link

Hitkul commented Apr 17, 2020

@dannyshaw It worked. Thank you

@squiter
Copy link

squiter commented Apr 17, 2020

and NOT --client-id and --client-secret as incorrectly specified in the docs and all the examples above.

This did the trick, thanks

@desgua
Copy link

desgua commented Apr 25, 2020

Thank you so much abers this step by step was what I needed :-)

@tobiasrenkin
Copy link

tobiasrenkin commented Apr 30, 2020

Here is a simple way to do it: go to https://developers.google.com/calendar/quickstart/python. Click on "Enable Google Calendar API". Get id and secret to use in gcalcli.

@aristosv
Copy link

Would this help?

https://github.com/aristosv/google_auth/blob/master/README.md

and then you can run

gcalcli --client_id=clientid_here --client_secret=clientsecret_here agenda

@ak202
Copy link

ak202 commented May 13, 2020

first time trying gcalcli, and I got the "temporarily disabled" notice without any "advanced" options. I did @aristosv suggestion and then the advanced button showed up, and I was then able to authenticate.

@sunnyguan
Copy link

If you have the fancy new dropdown box, I tried using TV and it was able to work as well. The name of the TV client did not matter.

@bwagner
Copy link

bwagner commented Aug 19, 2020

Behind a proxy here. Environment Variables http_proxy and https_proxy configured. Running
python -m pip install --upgrade pip
works (to demonstrate proxy settings are picked up by python).
Trying
gcalcli --client-id=xxx.apps.googleusercontent.com --client-secret=yyy calw
with and without (--noauth_local_webserver), I get to authenticate, but in the shell I get this error:

  File "c:\users\czxbwg\appdata\local\programs\python\python38\lib\site-packages\httplib2\socks.py", line 465, in __negotiatehttp
    raise HTTPError((statuscode, statusline[2]))
httplib2.socks.HTTPError: (407, b'Proxy Authentication Required')

This is:
gcalcli v4.3.0
on
MINGW64_NT-10.0-17763 C42L37WS1065 3.0.7-338.x86_64 2019-11-21 23:07 UTC x86_64 Msys
on
Microsoft Windows 10 Enterprise
Version 1809 (OS Build 17763. 1397)

@xdhmoore
Copy link

Still getting this screen on 2020-10-9. I was able to set up the clientid/secret successfully in Google Cloud's console as described. But it would be nice if it just worked. Since this issue has been open so long though, maybe at this point all the setup stuff should be added to the README. I have a passing familiarity with Google Cloud's console, but for people that don't, it may be prohibitively confusing.

@xdhmoore
Copy link

xdhmoore commented Oct 10, 2020

aaaaand, the process is already mostly on the README, here for anyone else trying to figure this out. When Google denies access click the Advanced option, as others have mentioned.

@KevinBuchs
Copy link

Still happening today. There is no advanced option

@aristosv
Copy link

Yesterday I did this for a client and it worked just fine. There was an "Advanced" button.

https://github.com/aristosv/google_auth/blob/master/README.md

@mglantz
Copy link

mglantz commented Dec 4, 2020

Confirming that using the --client-id and --client-secret arguments to authenticate works. This article is a bit outdated but is the general idea: create an OAuth web login app in the Google developer console, then enable the calendar API for it. Works!

This is probably the best approach, actually, if you are concerned about security (making sure you're not granting a 3rd party app access to your cal).

Confirming that this is still the case as of this writing.
Create Google Calendar API access, add oauth2 application, and then define arguments:

gcalcli --client-id the-id-you-created --client-secret the-secret-created

@dbarnett
Copy link
Collaborator

Seems like this won't be an issue anymore (as long as you're supplying your own --client-id and not using the old built-in one), but please reach out with a fresh issue if anyone's still seeing problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests