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

OAuth with builtin http server #191

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yoshinari-nomura
Copy link
Contributor

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.

Since OAuth out-of-band (oob) flow is deprecated by Google,
we have to handle HTTP redirection to get token code.

This code is not only for Mew, should be in oauth2.el
If you have multiple Gmail accounts,
Now Mew can distinguish between them.
@kazu-yamamoto kazu-yamamoto self-requested a review April 25, 2024 04:05
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

Successfully merging this pull request may close these issues.

1 participant