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

Using 2fa app passwords in Gmail is confusing because it chooses OAUTH instead by default #145

Open
alexlehm opened this issue Apr 19, 2020 · 4 comments

Comments

@alexlehm
Copy link
Contributor

alexlehm commented Apr 19, 2020

Describe the feature

Since Paulo implemented the XOAUTH feature in the mail client, using gmail and outlook requires twiddling with the supported auth methods list if XOAUTH is not used but the app-specific passwords (PLAIN or LOGIN), which is kind of confusing there were some issues mentioning that.
I wonder if it would be better to remove XOAUTH by default from the list of methods and only enable that when it is explicitly done with the config.

This is not so much a feature request, rather something I noticed when reading through emails from the issues.

If i remember correctly, XOATH also uses the user and password parameters like PLAIN, so its not possible to distinguish which is wanted when the programmer only sets the parameters with a method preference. I think a reasonable default would be good and then to mention which can be set when using the other method. The automatic selection of the auth methods is kind of at a loss with this.

Contribution

I don't think I have time (maybe), otherwise @pmlopes would be the most obvious person because he did the OAUTH feature

@alexlehm
Copy link
Contributor Author

actually issue #124 may fix that, however that would mean that the client would always try on failing oauth attempt first

@pmlopes
Copy link
Member

pmlopes commented Apr 21, 2020

Yes, that and allowing the user to set the order of the algorithms (to reduce the failure tests) should fix it.

@javadevmtl
Copy link

Question does the vertx-mail client now natively support XOAUTH or we need to do extra OAUTH first and then pass the tokens to the email client?

@gaol
Copy link
Member

gaol commented Nov 26, 2020

@javadevmtl you need to pass the tokens to the email client.

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

No branches or pull requests

4 participants