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.
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
It might happen that your OAuth Authentication might authenticate your webservice if you are on BC v19.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. Conclusion:
Use the Application ID from Azure App Registration and paste in the Client ID.
However, I have observed this step to be mandatory in BC v20.
I hope this helps and thanks for reading.😄
I am still facing the issue in postman i got the token successfully but after configuring it in BC i am not able to retrive the data it giving error 401. Unauthorized. kindly suggest.
ReplyDelete