KB Article: Generate Client ID, Client Secret & Tenant ID for Microsoft 365 OAuth & Configuring SMTP in BDRSuite

KB Article: Generate Client ID, Client Secret & Tenant ID for Microsoft 365 OAuth & Configuring SMTP in BDRSuite

Overview
This guide provides step-by-step instructions on how to:
Register an application in Microsoft Azure to generate:
  1. Client ID
  2. Client Secret
  3. Tenant ID
Use these credentials to configure SMTP with OAuth in BDRSuite. 
Steps to Generate Client ID, Client Secret, and Tenant ID for O365
  1. Log in to portal.azure.com using your work-email account.
  2. Navigate to App Registration. You can use the search option to find it quickly. Then click New Registration. (Ensure your Microsoft 365 account can register apps. If App Registration is disabled, ask your admin to enable it).
  3. Enter a name of your choice for the Application and choose the supported account types: "Accounts in the organizational directory only."
  4. Select Web in the Select a Platform field.
  5. Specify the Redirect URL as follows:   
  1. If your BDRSuite server is accessed only locally using local IP addresses, Provide a redirect URI in following format: https://<ip_address>.nip.io:<port_number>/emailoauth/o365        Eg:https://192.168.103.8.nip.io:6061/emailoauth/o365
  2. If your BDRSuite server is accessed using a public domain name or a public IP addresses, Provide a redirect URI in the following format: https://<public_ip_address or public_domain_name>:<port_number>/emailoauth/o365 Eg:https://bdr.example.com:6061/emailoauth/o365
  3. If your BDRSuite server is accessed using the domain name localhost, provide a redirect URI in the following format: https://localhost:<port_number>/emailoauth/o365 . i.e :https://localhost:6061/emailoauth/o365   
  1. Copy the Client ID and Tenant ID displayed and keep them safe for later use.
  2. In the left pane, Under Manage > click Certificates & secrets > New client secret.
  3. Provide a Description for the client secret. In the Expires field, choose the validity of the client secret and click Add.
  4. The client secret will be generated. Copy the string displayed under "Value" and keep it safe for later use. 
  Steps to Configure SMTP for Microsoft 365 OAuth
  1. Open the redirect URL(specified in step 5 of Generation of App for OAuth) directly in your browser. Login into BDRSuite Web console with an admin account using the URL as follows.  
  1. If your BDRSuite server is accessed only locally using local IP addresses, Provide a redirect URI in following format: https://<ip_address>.nip.io:<port_number>         Eg:https://192.168.103.8.nip.io:6061
  2. If your BDRSuite server is accessed using a public domain name or a public IP addresses, Provide a redirect URI in the following format: https://<public_ip_address or public_domain_name>:<port_number> Eg:https://bdr.example.com:6061
  3. If your BDRSuite server is accessed using the domain name localhost, provide a redirect URI in the following format: https://localhost:<port_number>  i.e https://localhost:6061    
  1. Access the SMTP settings page: Management -> Settings -> SMTP.
  2. Provide values in various fields such as SMTP Server etc.. as per Office 365's settings.
  3. For the "Authentication" field, choose Select OAuth > Office 365.
  4. Provide the Client ID, Client Secret, and Tenant ID you saved earlier during the Office 365 Application creation process.
  5. Ensure that all fields are appropriately filled and click "Authorize and Save".
  6. Proceed with the OAuth consent process.
Notes
Note: To complete the consent process, your account needs to have appropriate permissions to the following scopes: SMTP.Send, offline_access, openid, profile, email. If you face any problems, contact your Organization Admin and check the permissions.
    • Related Articles

    • KB Article: Generating Client ID and Client Secret for Google OAuth 2.0 & Configuring SMTP in BDRSuite

      Overview This article provides step-by-step instructions to: 1. Generate a Client ID and Client Secret using the Google Cloud Console for OAuth 2.0 authentication. 2. Configure SMTP settings in BDRSuite using OAuth-based authentication with Google. ...
    • Backup aborted

      KB ID: 101005 Product: BDRSuite Backup Server Cause This will occur due to the following reasons: Backup configuration stored in the server and client is incompatible. When the Backup storage location is inaccessible to the backup server. If you ...
    • Configuring SMTP Settings for Email Reports

      KB ID: 115007 Challenge: Configure email settings to receive backup and restore reports in BDRSuite Solution: SMTP server settings are needed for setting up Email reports. Please login to your web console and go to Email Settings page to enable it. ...
    • Configuring GMAIL SMTP Settings for Email Notifications

      By configuring the SMTP Server settings, you can enable the functionality of automatic email notifications, allowing you to receive reports directly to your email inbox. This configuration ensures that important information and updates are seamlessly ...
    • How to Uninstall BDRSuite Client

      KB ID: 115019 Challenge: Uninstalling the BDRSuite Client from machines is essential for various reasons. This knowledge base article provides step-by-step instructions on how to perform a complete uninstallation of the BDRSuite Client for Windows ...