Configuring OAuth authentication for Dynamics 365 Business Central APIs
To start using Dynamics 365 Business Central APIs, you first need to be authenticated. Dynamics 365 Business Central SaaS requires that you use the OAuth protocol for authentication.
OAuth is an open standard authorization protocol for securing access to third-party services. OAuth never shares passwords between the actors of a process but instead, it sends authorization tokens, and this token is used to prove the authenticity of the identity.
OAuth permits users to sign in to Business Central APIs using their Microsoft 365 or Microsoft Entra ID credentials in an interactive or non-interactive way. Please note that in Dynamics 365 Business Central on-premises, you can still use basic authentication (username and web service access key).
In this section, we’ll see how to configure Microsoft Entra ID (previously named Azure Active Directory or Azure AD) for using Service-to-Service (S2S) authentication...