kazu-yamamoto / Mew

Messaging in the Emacs World
http://www.mew.org/
Other
191 stars 51 forks source link

OAuth with builtin http server #191

Open yoshinari-nomura opened 8 months ago

yoshinari-nomura commented 8 months ago

1. Emacs as HTTP server to handle OAuth2 redirection

It follows Out-Of-Band (OOB) flow Migration Guide: https://developers.google.com/identity/protocols/oauth2/resources/oob-migration

To enable this feature, set mew-auth-oauth2-redirect-url to non-nil:

(setq mew-auth-oauth2-redirect-url "http://localhost:8080")

means Emacs opens 8080 to handle OAuth2 redirection.

2. Support multiple Gmail accounts

Distinguish between tokens from different accounts of the same OAuth provider.