Closed albertopitti closed 1 year ago
if it is a generic domain account try adding MAILBOX after .../ssl}
+1 gabriel-tandil's answer does not help
I found the issue, it was on the library to get the token, it uses an old endpoint and still gives me a token
I'm trying to authenticate to outlook, the azure application is configured well, I tested it with the powershell script mentioned here http://wiki.canfigure.net/en/guides/exchange-oauth2, but I receive the message:
Can not authenticate to IMAP server: A0001 NO AUTHENTICATE failed.
I obtain the token with https://github.com/TheNetworg/oauth2-azure and it works fine and then try withimap2_open('{outlook.office365.com:993/imap/ssl}', 'name@domain.com', $token, OP_XOAUTH2)
got me that error