Setting up API authentication
For authentication, Admin Center APIs use Open Authorization 2.0 (OAuth 2.0) with Azure Active Directory (Azure AD). You must create an Azure app registration and let it call your Admin Center API. The process might be a bit tricky initially, but after a bit of practice, it should get a lot easier. Follow these steps to set up API authentication:
- Open the Azure portal and find App registrations. Click on + New registration to begin the process, as illustrated in the following screenshot:
- In the second step, fill in a Name value for the app—for example, Business Central. For the Supported account types section, choose who will use the API—accounts from only your tenant or somebody else. Then, choose Public client/Native as the Redirect URIs value and type
BusinessCentralWebServiceClient://auth
in the box next to it. Click on Register to continue. The process...