dengste / org-caldav

Caldav sync for Emacs orgmode
GNU General Public License v3.0
724 stars 105 forks source link

Retrieving OAuth 2.0 tokens via Out Of Band redirect_uri is deprecated #249

Open EmperorDali opened 2 years ago

EmperorDali commented 2 years ago

tl;dr: Google has deprecated the Out Of Band ('oob') method of obtaining OAuth 2.0 authentication tokens which is what org-caldav uses via the emacs package oauth2. This means that it's no longer possible to generate the authentication tokens needed for org-caldav to sync with Google Calendar. Existing tokens will work with oob flow until the end of October 2022 at which point they will also stop working.

The fix for this is to migrate the OAuth 2.0 flow to localhost, which requires running a local webserver that the OAuth2.0 login will redirect to and provide the token to.

See this related issue in the org-gcal repo for more details

This isn't really an org-caldav issue but rather something that should be fixed in the emacs oauth2 package, but nevertheless I wanted to raise the issue here in case folks wonder why they aren't able to configure org-caldav to sync against Google Calendar.

boogsbunny commented 12 months ago

Is there a plan to fix this?