An authenticated connection to Office 365 is required in order to access emails, or files from Microsofts Services. This guide is a walk-through to establish an OAuth application connection, based up on Microsofts interface in the year 2022.
The following prerequisites must be fulfilled for a successful connection to Microsoft Office 365 authentication service:
If an e-mail retrieval or dispatch is initiated with this profile, the following requirements must be met:
smtp-mail.outlook.com, imap-mail.outlook.comoutlook.office365.com, smtp.office365.com.You are about to create a new application now. This application will provide the authentication credentials for the OAuth connection we want to add to INETAPP.
Entra ID from the overviewApp registrations from the sidebar menuNew registration from the menuIn the newly opened page you have to configure your application (see image below):
Web as the Redirect URL type.Register at the bottom of the dialog
In the INETAPP server configuration, open the Office365 configuration dialog as seen in the image below. There you have to fill in the missing information.
Note: If you selected Single Tenant in the account type configuration, you have to enter the tenants id in the respective field of the configuration. Otherwise it must be left empty.

The Client and Tennant IDs are displayed in the overview, directly after creating the application. They are displayed as Application (client) ID and Directory (tennant) ID in the Essentials section of the application, directly below the applications name. Paste the Client and the Tennant IDs into the OAuth Connection dialog.

The Client Secret has to be created separately. You can use the link Add a certificate or secret in the essentials section to navigate there.
New client secret in the Client secrets tabAdd
You must now copy the new entry from the Value column from the table and paste it into the OAuth Connection dialog.
Note: The Secret ID is considered a password, so please keep it in a safe place.
