-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Can't connect to Microsoft Exchange Server oAuth IMAP: NO AUTHENTICATE failed #207
Comments
The Microsoft Exchange user has Mail license. IMAP config:
"openssl s_client -crlf -connect outlook.office365.com:993" shows same error:
|
I am not currently using Microsoft Exchange, however perhaps this could help: According to Microsoft's documentation, the URL must be
In the $authenticateParams = ['XOAUTH2', base64_encode("user=$user\1auth=Bearer $token\1\1")]; What do the base64("user=" + userName + "^Aauth=Bearer " + accessToken + "^A^A") |
Hi @freescout-helpdesk , I hope this helps :) P.s.: I've sent you an email a few month ago and never heard back - the offer still stands :) Best regards, |
Apparently the problem is with URL we are using to get Access Token. This one https://login.microsoftonline.com/common/oauth2/v2.0/authorize from documentation does not work:
While https://login.windows.net/common/oauth2/authorize works fine but received Access Token results in |
We were using
Going in the app settings in Azure to "Authentication >> Supported account types" and selecting "Accounts in any organizational directory (Any Azure AD directory - Multitenant)" fixed the issue. |
Hi @freescout-helpdesk , Best regards, |
This is similar to #81
We are having troubles authenticating to Microsoft Exchange Server. Scope is
https://outlook.office.com/IMAP.AccessAsUser.All
What can be wrong?
The text was updated successfully, but these errors were encountered: