Skip to main content

Notifications

Update to OAuth in Dynamics Business Central v20

Introduction:

In one of my blog on Setting up OAuth Authentication for Webservices and APIs in Dynamics Business Central, I shared how to setup OAuth Authentication.
With Dynamics 365 Business Central releasing version 20, the Webservice Key Authentication has become OBSOLETE and all your integrations are to be moved to OAuth Authentication.

There are few more steps in addition to the steps I mentioned in the blog above and those will be seen in the demonstration.

Pre-requisites:

  • Microsoft Dynamics 365 Business Central
  • Understanding OAuth Authentication
  • Understanding Azure App Registration

Demonstration:

1. Complete all the Azure App Registration:
Complete the Azure App Registration process as mentioned in the blog Setting up OAuth Authentication

2. Change the Redirect URL in Azure App Registration:
Change the Redirect URL in Azure App Registration > Authentication to
https://businesscentral.dynamics.com/OAuthLanding.htm


3. Azure Active Directory Application:
In Business Central > Search 'Azure Active Directory Application' > Open the Azure Active Directory Application Card.
Use the Application ID from Azure App Registration and paste in the Client ID.  
 Now, go ahead and Grant the Consent using the Adminstration account. This will open the login screen as you get during login, put in the Admin Credentials and you are authenticated to connect.

Conclusion:

It might happen that your OAuth Authentication might authenticate your webservice if you are on BC v19.
However, I have observed this step to be mandatory in BC v20.
I hope this helps and thanks for reading.

This was originally posted here.

Comments

*This post is locked for comments