Skip to main content
Skip table of contents

Microsoft App Registration for Email OAUTH2


Prerequisites

  1. An Azure account that has an active subscription.

  2. The Azure account must have permission to manage applications in Azure Active Directory (Azure AD)

Register an Application

  1. Sign in to the Azure Portal

  2. Search for and select Azure Active Directory.

  3. In the Manage section, select App registrations, then select New registration.

  4. 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.

  5. Specify who can use the application, known as the sign-in audience. Select Accounts in this organizational directory only.

  6. Enter the Redirect URI. Select Web and value as http://localhost:3017/

    You must enter http://localhost. The recommended port number is 3017.
  7. Select Register

Example:

Add credentials

  1. Select Certificates & secrets.

  2. Select the Client secrets tab, then select + New client secret.

  3. Add a description for your client secret.

  4. Select an expiration for the secret or specify a custom lifetime, for example 24 months.

  5. Select Add.

Copy the Value for use in your client application code. You cannot retrieve this value after you exit or close this page.

API Permissions

  1. Select API Permissions.

  2. Add a permission. Select Microsoft Graph, then select Delegated Permissions.

  3. Search for SMTP.Send. Select Add Permission.

  4. Search for IMAP.AccessAsUser.All. Select Add Permission.
  5. Search for POP.AccessAsUser.All. Select Add Permission.
  6. 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.


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.