insanum / gcalcli

Google Calendar Command Line Interface
MIT License
3.31k stars 311 forks source link

Out-Of-Band (OOB) flow #684

Closed denis734552 closed 1 month ago

denis734552 commented 3 months ago

I was running gcalcli from container and had to authenitcate it every week with '--noauth_local_webserver' option. Like having this:

Go to the following link in your browser:

    `https://accounts.google.com/o/oauth2/v2/auth?client_id=XXXXXXXXXXXXXXX.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%....se_type=code`

Enter verification code:

then copying link to external browser, getting verification code and copying it back to the container. As I understand correctly it is caled OOB (out-Of-Band) method. Starting recently , it started to show me error 404 saying in the details that OOB is no longer supported by Google started from 01.31.20023.

Is it possible to use different options than OAuth2.0 for authentication in the environments, when web browser is not available? Liike:

  1. API key (not sure if this is the right option, but mentioned it anyway)
  2. OAuth 2.0 Device Flow (this flow is designed specifically for applications without a web browser)
dbarnett commented 1 month ago

Dupe of #626. Let's continue discussion there.