Using SmartConnect to Integrate Your OAuth Token to Business Central

Posted on: March 10, 2022 | By: Rosie Gill | Microsoft Dynamics Business Central

It’s very common for online Business Central users to use an authentication service when logging in to ensure security. Microsoft has recently announced that they will be removing the ability to authenticate users using a basic authentication. Instead, users are being recommended to use modern authentication. This can be set up using SmartConnect.

In today’s blog post, we are going over how to integrate modern authentication using SmartConnect.

Creating the Authorization in Azure

In order to link your OAuth to Business Central using SmartConnect, you must first set up the OAuth token itself. This can be done using Azure.

  1. First, you need to go to portal.azure.com
  2. Type “App registrations” into the search bar and select the corresponding result.
  3. Select New Registration and enter an identifying name for the application.
  4. Select the specified Supported Account Type.
  5. In the Redirect URI field, you select Web enter the corresponding URL to your deployment/region.
  6. Select the Register button.
  7. Navigate to Certificates & secrets, and select New client secret.
  8. Fill in the relevant fields. When you are finished, select Add, and the new secret will be created. You should save a copy of the Value because you will not be able to fully see it again after leaving the Azure portal.
  9. Select API Permission, and click Add a permission. Here, you will select Dynamics 365 Business Central.
  10. Once this has been completed, select Overview in left hand bar, and copy and save the Application (client) ID value.
  11. After all of these steps are complete, you are not ready to configure the Business Central connection in SmartConnect.

Configuring the Business Central Connection in SmartConnect

  1. Navigate to login.smartconnect.com and enter your corresponding information.
  2. Once in the application, go to Connections and select Create Connection.
  3. Here, you will select Dynamics 365 Business Central OData
  4. You will have to type in a description for the connection. Then, check the “Use OAuth to Connect” option.
  5. Next, type in your service URL. The Tenant ID field will pull the GUID from the Service URL field.
  6. You must enter the Application Id that corresponds to the application registered in Azure. You can find this value on the Overview page in Azure.
  7. Next, you must enter the Client Secret value that you had written down earlier.
  8. Once complete with all of the above steps, you can click Validate. This triggers the OAuth process. The page should redirect you to a Microsoft login screen, and you will be asked to grant permissions.
  9. Once you have validated your OAuth for your login, the page will send you back to the Dynamics 365 Business Central connector and allow you to select your company.
  10. You can now save the connector. You have successfully completed the validation and configuration in SmartConnect.

Next Steps

If you want to explore more of the ways you can customize your Business Central space to fit your company’s unique needs, reach out to an expert at Logan Consulting today.



Top 10 Inventory & Operations Decisions Distributors Are Making Blind
Top 10 Inventory & Operations Decisions Distributors Are Making Blind

Free Download:

Top 10 Inventory & Operations Decisions Distributors Are Making Blind

Download the guide ›

2020 Nucleus Research Report on ERP Technology

Free Download:

2020 Nucleus Research Report on ERP Technology

Download the guide ›