Microsoft App Registration for Email OAUTH2
Prerequisites
An Azure account that has an active subscription.
The Azure account must have permission to manage applications in Azure Active Directory (Azure AD)
Register an Application
Sign in to the Azure Portal
Search for and select Azure Active Directory.
In the Manage section, select App registrations, then select New registration.
Enter a display Name for your application. The display name may appear to application users, for example on the sign-in page. You can change the display name at any time and multiple app registrations can share the same name.
Specify who can use the application, known as the sign-in audience. Select Accounts in this organizational directory only.
Enter the Redirect URI. Select Web and value as http://localhost:3017/
You must enter http://localhost. The recommended port number is 3017.Select Register
Example:
Add credentials
Select Certificates & secrets.
Select the Client secrets tab, then select + New client secret.
Add a description for your client secret.
Select an expiration for the secret or specify a custom lifetime, for example 24 months.
Select Add.
API Permissions
Select API Permissions.
Add a permission. Select Microsoft Graph, then select Delegated Permissions.
Search for SMTP.Send. Select Add Permission.
- Search for IMAP.AccessAsUser.All. Select Add Permission.
- Search for POP.AccessAsUser.All. Select Add Permission.
- Search for offline_access. Select Add Permission.
Complete Registration
There are 4 pieces of information needed to obtain an access token for IMAP, POP3, or SMTP authentication. This information must be provided to your BusinessPlus Administrator for Configuring BusinessPlus.
Your Directory (tenant) ID
Your Application (client) ID
Your Application client secret value
The localhost port number used in the Redirect URI.
The Tenant ID and Client ID can be obtained from the newly created App Home Page in the Essentials section.