Introduction
This document is a guide for setting up Microsoft Entra App Registrations, which provide authentication for connecting to EliteParks. For example, when your website uses the Booking API for reservations or availability checks, it authenticates with OAuth 2.0 using the Client ID and Client Secret from an Entra App.
Create Azure App
This will be the Azure App which will consume the EliteParks API.
Open the Azure Portal Home - Microsoft Azure
In the left pane, select Azure Active Directory
Under Manage, select App registrations
Select New registration
Enter the following values:
Name = Elite API ([API Consumer Name])
E.g. Elite API (WebSite)
Support account type = Accounts in this organizational directory only
Redirect Url
Platform = Web
Url = https://businesscentral.dynamics.com/OAuthLanding.htm
Select Register
From the left pane, Select Overview
Save the Application (client) ID value
Assign the Azure API permissions
We need to assign the correct Azure API permissions to the App so it can connect to Business Central.
Open the Azure Portal Home - Microsoft Azure
In the left pane, select Azure Active Directory
Under Manage, select App registrations
Select the EliteParks API (API Consumer Name) app
In the left pane, select API permissions
Select add a permission
Select the following permissions
Dynamics 365 Business Central
Application permissions
API.ReadWrite.All
Click Add permissions
Click Grant admin consent for {tenant name}
Click Yes
Create Client Secret
Once the app has been created, proceed with creating a client Secret for the app in Azure.
❕ Important Note
Client secrets do have expiry dates, and the date depends on the length you choose. Microsoft provide predefined lengths for you to choose to assist with this process. You must ensure you keep record of Client Secret expiries, to give you time to generate a new one.
We recommend rotating client secrets every 12 months, by creating a new client secret. This then needs to be added to any application using the current secret.
Open the Azure Portal Home - Microsoft Azure
In the left pane, select Microsoft Entra ID
Under Manage, select the App Registrations
Select the newly created App
On the left pane under Manage, select Certificates & Secret
Select New Client Secret. Enter a Description
Click Add. This will then add a new Client Secret
A new line will appear, please copy the Value as this is the Client Secret you will be using
Register Azure App in EliteParks
We need to register the App in EliteParks so it can authenticate and Business Central can create associated User record.
Open the Business Dynamics 365 Business Central
Go to Azure Active Directory Applications
Click New
Enter the following values:
Client ID = Application (client) ID
Description = {API Consumer Name} API
E.g. WebSite API
This will be the value used to create the User ID
This record is created when the field is validated
State = Enabled
Assign EPW API APP permission for all companies
Click action Grant Consent
Sign in using our account in the Customers tenant
Accept permissions request
Note the Access Token Url
Create Azure App User Records in EliteParks
We need to create the user records for the Azure App in in EliteParks.
From the Azure Active Directory Applications Card
Click Create Default User Records action
This will create records in EliteParks User Setup and depending on what the app will be doing will determine the permissions setup on here.
Permissions
By default the permission set used for Entra Apps is EPW API APP. You can create your own custom app if you want to strip down permissions as this will grant access to everything.