Trying to get Oauth2 with Microsoft 365 working, tried the authentication guide to no avail.
- enter the Oauth2 details and get: mailbox: OAuth2 Authorization Successful
- click save and get AUTHENTICATE failed
Account settings
Hostname: outlook.office365.com
Port number: 993
Folder: Support
Protocol: IMAP
Authentication: OAuth2 - Microsoft
Below is the oauth2 settings:
Callback Endpoint https://hidden.url/api/auth/oauth2
Client Identifier (Id): hidden.id
Client Secret: hidden.secret
Authorization URL: https://login.microsoftonline.com/common/oauth2/v2.0/authorize
Access Token URL: https://login.microsoftonline.com/common/oauth2/v2.0/token
User Details URL: https://outlook.office.com/api/v2.0/me
Scopes: offline_access https://outlook.office.com/Mail.ReadWrite
Email Address Attribute: EmailAddress
Any assistance would be appreciated.