Saturday, October 12, 2019

D365FO - Data integration by OData (Part 2 of 5)

D365FO - Data integration by OData (Part 1 of 5)
D365FO - Data integration by OData (Part 2 of 5) You are here!
D365FO - Data integration by OData (Part 3 of 5)
D365FO - Data integration by OData (Part 4 of 5)
D365FO - Data integration by OData (Part 5 of 5)


Register and prepare (OData client) application authentication in AAD and D365FO


Why we need this?

We need this step because we are going to create an OData client app (the new app) and it cannot run alone. Actually It will run in the same environment with Azure Acitve Directory (AAD) and D365FO which the authentication mechanism provide by OAuth2.0 standard. 

This step will make AAD to recognize the new app, provide the necessary App ID and key. Then we use that app ID and key to seam the new app and D365FO together. So when testing, we only need to put the credential once (single sign-on).

It consists of these operations:
  • Register a new app in AAD
  • Add API permissions
  • White-list the new app in D365FO 


Register a new app in AAD

Access Azure portal (https://portal.azure.com) with your account for example xyz@yourCompany.onmicrosoft.com

At the left pane, go to "Azure Active Directory"  -> "App registrations" and click "New registration"































Then put the name and URI of the app. In this example, I choose public client/native because the new App will be written as console application.

































Now, we got app ID, directory ID, and object ID. These ID will be used further.










Add API permissions


Add caption























































































We should get the result like this.























White-list the new app in D365FO

Now, we can bring the new created app ID register in D365FO.

Go to System administration -> Setup -> Azure Active Directory applications

































=== End of Part 2 ===

No comments:

Post a Comment