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

Add OAuth support #197

Open
griesi007 opened this issue Jul 22, 2022 · 10 comments
Open

Add OAuth support #197

griesi007 opened this issue Jul 22, 2022 · 10 comments

Comments

@griesi007
Copy link

Microsoft Office365 / Exchange Online will finally turn off current BasicAuth standard authentication for POP3 on 2022/10/01. From then on only XOAUTH2 is supported for POP3. Also Microsoft is already switching "Basic Auth" off for certain exchange online instances.

It would be great if Laminas Mail could support POP with XOAUTH2

@Ocramius
Copy link
Member

Send a patch 👍

@griesi007
Copy link
Author

@Ocramius yes that´s what I am currently planning.

@griesi007
Copy link
Author

@Ocramius Just provided a pull request.

@Ocramius
Copy link
Member

Keeping this open until feature actually landed

@Ocramius Ocramius reopened this Jul 28, 2022
@Ocramius Ocramius modified the milestone: 2.17.0 Jul 28, 2022
@Ocramius Ocramius added the Won't Fix This will not be worked on label Jul 28, 2022
@Ocramius Ocramius self-assigned this Jul 28, 2022
@Ocramius
Copy link
Member

Closing as Won't fix as per #199 (comment)

@Slamdunk
Copy link
Contributor

#199 has been correctly rejected as contributor is not going to fulfil this library requirements, but OAuth support needs to land here eventually, both in IMAP/POP and SMTP protocols

OAuth2 has no specific binding to Microsoft, it's just the first major email provider to ban other auth mechanisms:
https://techcommunity.microsoft.com/t5/exchange-team-blog/basic-authentication-deprecation-in-exchange-online-may-2022/ba-p/3301866

I say let's reopen this issue and wait for a proper implementation

@Ocramius
Copy link
Member

Works for me 👍

@Ocramius Ocramius reopened this Jul 28, 2022
@Ocramius Ocramius added Help Wanted and removed Won't Fix This will not be worked on labels Jul 28, 2022
@Slamdunk Slamdunk changed the title POP3/4 OAuth Authentication (XOAUTH2) Add OAuth support Jul 28, 2022
@griesi007
Copy link
Author

griesi007 commented Jul 28, 2022

@Slamdunk Your comment "OAuth2 has no specific binding to Microsoft" is not completely true. The POP3 XOAUTH procedure is done differently by Micrsoft than by Google. With Microsoft it is a 2 step process requiring first a "AUTH XOAUTH2" request beeing sent and afterwards a separate request providing the XOAUT2 string. Google does that in one request

https://docs.microsoft.com/de-de/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth

@RalfEggert
Copy link

I have no idea how to implement this but I will need OAuth SMTP Support für Laminas\Mail some day. So I just subscribed to see how its going.

@EmeryEx
Copy link
Contributor

EmeryEx commented Jan 12, 2023

#227 Resolves Oauth for SMTP

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

No branches or pull requests

5 participants