Authentication Online
For accessing APIs in Dynamics Empire Online we support two authentication methods:
- Basic authentication (deprecated as June 2022)
- Oauth2
All accounts in Dynamics Online are created in Azure Active Directory and needs to get assigned a full BC License.
For basi authentication a combination of username and password is used to authenticate:
Username = AAD account without @domainname
Password = Web API key
Oauth2
As of June 2022 the only method to authenticate against Dynamics Empire Online is through OAuth. See details about different oAuth flows:
- Using Service-To-Service (S2S) Authentication (Prefered >=R2109)
- Get Access through OAuth ROPC Flow (only option till R2109)
- Get Access through OAuth using Postman
Basic Authentication
Deprecated as of June 2022
For basic Authentication username and Web API key are used to grant access. To create a web API key:
- Logon to Business Central webclient, with the account needed for the API
- Navigate to page Users
- Generate a web API key (Make sure to copy all content)