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

Support for OAuth2 (because of Google "Less secure apps" deprecation) #113

Open
KaliszAd opened this issue Mar 16, 2022 · 7 comments
Open

Comments

@KaliszAd
Copy link

Google will stop support for "Less secure 3rd party applications" on May 30th 2022. Can postal be used with oauth2?
I think, adding support would be possible, since Jakarta Mail/ JavaMail seems to support it.

@liquidz
Copy link

liquidz commented Mar 17, 2022

@KaliszAd
I'm afraid I'm going to get off the main track, but could you tell me the source for May 30th 2022?

I've been watching google workspace updates, but I could find only the following article.
https://workspaceupdates.googleblog.com/2020/03/less-secure-app-turn-off-suspended.html

Is there a more recent article?

@KaliszAd
Copy link
Author

KaliszAd commented Mar 17, 2022 via email

@liquidz
Copy link

liquidz commented Mar 17, 2022

@KaliszAd Thank you so much!

@imadmian
Copy link

any update on this ? @liquidz

@drewr
Copy link
Owner

drewr commented Jun 15, 2022

Just an update on my end I don't have any bandwidth to implement this, but I could probably manage a review. Any takers? ❤️

@KaliszAd
Copy link
Author

KaliszAd commented Jul 22, 2022

Perhaps leaving out the password parameter could switch the authentication to OAuth2: https://stackoverflow.com/questions/41821747/smtp-google-apps-oauth2-issue-in-relay Perhaps it is the old approach and no longer relevant as the OAuth2 token seems to be directly supported. IDK, I would need to acquire the needed expertise in JavaMail to implement it.

@KaliszAd
Copy link
Author

KaliszAd commented Aug 9, 2022

Until the feature is implemented, here is a workaround using App Passwords: https://support.google.com/accounts/answer/185833?hl=en You can only enable them in account security, when you have two-factor authentication active. Enabling less secure apps is not necessary in such a case. Google only provides 16 lower-case letter passwords using this option so it probably doesn't improve security in some cases, where the account had longer, well protected/ rarely used passwords but that is a different discussion. It might fail some audit requirements though.

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

No branches or pull requests

4 participants