Req #64039 [Com]: suppport XOAUTH2 in imap_open

From: Date: Wed, 19 Jul 2023 09:36:44 +0000
Subject: Req #64039 [Com]: suppport XOAUTH2 in imap_open
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244995@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64039&edit=1

 ID:                 64039
 Comment by:         slu at baebeca dot de
 Reported by:        k dot andris at gmail dot com
 Summary:            suppport XOAUTH2 in imap_open
 Status:             Open
 Type:               Feature/Change Request
 Package:            IMAP related
 Operating System:   linux
 PHP Version:        5.3.21
 Block user comment: N
 Private report:     N

 New Comment:

Hello, is there any news about this feature? 
In the meantime, Microsoft has also completely discontinued the operation for standard IMAP for
their entire Exchange-Online and Office365 structure.
This means that the PHP-IMAP implementation can unfortunately no longer be used for the major
providers :(

As far as I understand it correctly, only a different base64 / AUTH mechanism would have to be
implemented. So that you provide a token instead the user password.

See Microsoft documentation:
learn.microsoft.com/de-de/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth#sasl-xoauth2
 
For me, it would also be a great help for existing applications to be able to use the native imap_*
functions.


Previous Comments:
------------------------------------------------------------------------
[2022-04-19 07:33:26] deblindan at gmail dot com

Hello, is there any news on this feature? On May 30th 2022, Google will shut down the possibility to
use password authentication, with only a few exceptions, which may cover some use cases, but not
all. Having imap_open support XOAUTH2 would be a big help for existing applications using imap_*
functions.

------------------------------------------------------------------------
[2020-01-15 07:38:03] cmb@php.net

Related To: Bug #79119

------------------------------------------------------------------------
[2020-01-08 05:38:33] bishop@php.net

Related To: Bug #78572

------------------------------------------------------------------------
[2020-01-08 05:34:04] bishop@php.net

Related To: Bug #78572

------------------------------------------------------------------------
[2020-01-08 05:29:44] bishop@php.net

Thanks for the request. It should be easy to add the XOAUTH2 mechanism to the AUTHENTICATE step of
imap_open, but consumers will need to add OAuth flows to their application; that's the hard
part.

Because Google and Microsoft are switching to OAuth soon, and since there may be some developers who
have questions on how to put it all together, we've assembled a single resource (info, plan,
status, etc) for consumers: https://wiki.php.net/todo/ext/imap/xoauth2

It's a work in progress.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=64039


--
Edit this bug report at https://bugs.php.net/bug.php?id=64039&edit=1


Thread (5 messages)

« previous php.bugs (#244995) next »