Skip to content

Azure Authorization connection guide

Using Azure Authorization-Code requires setting up an Azure App Registration to allow the Reactor Client to authenticate and access your services. To create the required app registry, follow this step-by-step guide:

Sign in to the Azure Portal

Go to the Azure Portal and sign in with your Azure account credentials.

Create a New Azure Application Registration

In the Azure Portal, look for 'Azure services' and click on 'Microsoft Entra ID'.

Microsoft Entra ID

Configure the App Registration

  1. Click on 'App registrations' in the left-hand menu.
  2. Select 'New registration.'

New Registration 1

Fill out the registration form by giving a meaningful name to your application and click the 'Register' button.

New Registration 2

Configure Redirect URI

Navigate to the 'Authentication' section in the app registration.

  1. Click on 'Add a platform'
  2. Choose 'Web'
  3. Enter 'http://localhost:8888' for the 'Enter the redirect URI of the application' field
  4. Click 'Configure'

Redirect URI

Configure API Permissions

Authentication

After registration, navigate to 'API permissions' in the left-hand menu for your app registration.

You need two permission:

'Dynamics 365 Business Central' 'user_impersonation' permission

  1. Click on '+ Add a permission'.
  2. Select 'Microsoft APIs'.
  3. Locate and select 'Dynamics 365 Business Central'.
  4. Choose 'Delegated permissions' and mark the checkbox for 'user_impersonation'.
  5. Click the 'Add permissions' button to add the permission.

'Microsoft Graph' API permission 'User.Read'

  1. Check if the 'Microsoft Graph' API permission 'User.Read' is added. If not click on '+ Add a permission' again.
  2. Select 'Microsoft APIs.'
  3. Search for 'Microsoft Graph' and select it.
  4. Choose 'Delegated permissions' and search for 'User.Read'.
  5. Mark the checkbox for 'User.Read'.
  6. Apply the permission by clicking the 'Add permissions' button.

Create a Client Secret (App Secret)

  1. In the left-hand menu, under 'Certificates & secrets' click on 'New client secret.'
  2. Enter a description for the secret and select an expiration period (e.g., 1 year).
  3. Click 'Add.'

Attention

Copy and save the generated client secret immediately, as it won't be visible again.

Client Secret

Connect the Reactor Client

After you've created the Azure Application Registration, set up your Reactor Client, as followed

Apdapter

  1. Give your Endpoint a name.
  2. Set up the Endpoint's URL. Use this format

    https://api.businesscentral.dynamics.com/v2.0/[Azure Tenant ID]/[Environment Name]/ODataV4
  3. Set the Type to 'BC [OData] and fill in your company name

Reactor Client BC 1

Authentication

For the next steps, use the information in 'Overview' in the left-hand menu and your Client Secret.

  1. Set up the authentication method to 'Azure Authorization-Code'
  2. Fill in the values for Tenant, Client ID, Client Secret and Endpoint
  3. The Scope must be 'https://api.businesscentral.dynamics.com/user_impersonation' Reactor Client BC 2

That's it! You've successfully created an Azure App Registration. Your application will now be able to securely authenticate and interact with your service.