-
-
Notifications
You must be signed in to change notification settings - Fork 185
Description
Hello,
I saw a lot of documents concerning the B2B part (it works fine), and no one about the consumer mailboxes.
I configured everything as expected (I think)
I can even can get the access/refresh token without any issue but the connexion fails.
Scope : openid email User.Read IMAP.AccessAsUser.All
(
openid offline_access email User.Read https://outlook.office.com/IMAP.AccessAsUser.All is not valid
and IMAP.AccessAsApp can't be added for consumer mailboxes
and https://outlook.office.com/Mail.ReadWrite does not help
)
URLs:
https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize
https://login.microsoftonline.com/consumers/oauth2/v2.0/token
(I replaced values with XXX below)
Config :
[accounts] => Array
(
[default] => Array
(
[host] => outlook.office365.com
[port] => 993
[protocol] => imap
[encryption] => ssl
[validate_cert] => 1
[username] => XXX@outlook.fr
[password] => XXX (the access token)
[authentication] => oauth
Debug :
OK The Microsoft Exchange IMAP4 service is ready. [XXX]
TAG1 AUTHENTICATE XOAUTH2 XXX...
<< TAG1 NO AUTHENTICATE failed.
Same issue if I did it manually (openssl s_client -crlf -connect outlook.office365.com:993 ...)