*products versions - {webMethods Integration Server version: 10.3 and above}
Introduction:
webMethods Integration Server supports OAuth 2.0 in Email Listener from 10.3 onwards. Since with Microsoft announcement related to disabling of Basic Authentication for Outlook, EWS, RPS, POP, IMAP, and EAS protocols in Exchange Online from Oct 1 2022 onwards, many users are now configuring Email listener with OAuth 2.0 to comply with the new Microsoft guidelines.
NOTE: In the Microsoft announcement, they are not disabling or changing any settings for SMTP AUTH, so Basic authentication will be working for sending mails (SMTP).
In this process of moving to OAuth 2.0 , user might encounter issues when trying to enable the Email listener. This article highlights the things that needs to be check in order to successfully enable a Email listener with OAuth settings.
Pre-requisite
- User has an account and setup application correctly in the Microsoft Azure. Please follow the article Setting up OAuth 2.0 compliant email listener in Integration Server using Microsoft Azure Active Directory (Azure AD) - Knowledge base - webMethods - Software AG Tech Community & Forums
- Latest IS core fixes are applied on the environment.
Troubleshooting Tips:
If Email listener with OAuth settings is not enabled, then please check:
-
"0068 Email Listener " component logging is set to TRACE in the Settings > Logging > View Server Logger Details
-
The βAuth URLβ and βAccess Token URLβ in the Email listener is in below format.
Auth URL :https://login.microsoftonline.com/{TenantID}/oauth2/v2.0/authorize
Access Token URL: https://login.microsoftonline.com/{TenantID}/oauth2/v2.0/token -
User has specified correct secret in the βClient Secretβ field. Note: Secret ID is different from Client Secret.
-
Scope is defined correctly and must be β
offline_access https://outlook.office365.com/IMAP.AccessAsUser.All
β -
βTransport Layer Securityβ is set to βImplicitβ
-
The Truststore configured in the βTruststore Alias (optional)β field has the certificates of the Microsoft server. Generally JVM truststore (cacerts) have certificates from the popular sites including Microsoft .
-
If βAccess Token Expiry Timeβ is empty, it means Integration Server has not yet received the Access token from the Microsoft. So, please enter the βClient Secretβ field and click on βGet Authorization Codeβ link again to get a new Authorization code and access token.
-
Once the Email listener is enabled but the service mentioned in the listener is not invoked, then please check below mentioned configurations. This information is already there in Online Help/Integration Server Administrator guide.
-
Check the βAccess Modeβ of the port. It should be βAllow by Defaultβ or the service is part of allowed list.
-
A user is specified in βRun services as userβ field in the Email Port. Otherwise the authentication details needs to be part of the Email message.
-
If βSend reply email with service outputβ , βSend reply email on errorβ are set to βYesβ in the Email port, then make sure that βEmail Notificationβ under "Settings > Resources " is configured correctly as those settings are used by Integration Server to send mails.
Additonal Notes:
- Integration Server support OAuth 2.0 for IMAP and SMTP (pub.client:smtp) only. Support of OAuth 2.0 for POP and βEmail Notificationβ is planned and might be available in future fixes.
Useful links | Relevant resources
- Microsoft identity platform and OAuth 2.0 authorization code flow - Microsoft Entra | Microsoft Docs
- Setting up OAuth 2.0 compliant email listener in Integration Server using Microsoft Azure Active Directory (Azure AD) - Knowledge base - webMethods - Software AG Tech Community & Forums
- POP, IMAP, and SMTP settings (microsoft.com)
- Basic Authentication Deprecation in Exchange Online β September 2022 Update - Microsoft Tech Community