To
register an app in Azure Active Directory, you must follow these steps.
Step
1: Go to https://portal.azure.com/
Step
2: Search for Application Registration
Click
the App registration and you will see the following screen.
Step
3: Click New Registration
Step 4: Githe ve application a name and select the supported account type. In my case, I have selected the Accounts in any organizational directory (Any Azure AD directory - Multitenant). It is just for that who can use the application or access this API.
Step 5: You can skip the Redirect URI option and click
the register button
After the registration you can see the details like
Application Client ID, Object ID, Tenant ID
Step 6: Now go to the Certificates & Secrets
Step 7: Click on New Client Secret
A dialog box will appear.
Step 8: Give a description of the client’s secret and
duration and click add button.
Client secret is created successfully.
You can copy and paste the values to some safe place because
they will be hidden after some time.
Step 9: Coming to our next point, go to the API
permissions
You will see the following screen
Step 10: Click on Add a permission
Request API Permission dialog box will open
Step 11: Click on Dynamics CRM option
Click on Delegated Permissions
Select user_impersonation and click add permissions
button
Step 12: Click on Grant Admin Consent
Click on Yes.
Admin consent confirmation is granted.
Stay tuned very little is left.
Step 13: Go to the Manifest
Step 14: Now we have to update allowPublicClient to true and oauth2AllowImplicitFlow to true.
Save the Manifest
Step 15: Go to Overview
Step 16: Add a redirect URI
It will ask you to add a platform. Click on add
platform.
In Configure platform dialog box, click on the web.
Provide URI. For Development, you can provide the URL
as http://localhost under Redirect URIs.
Select Access tokens (used for implicit flows)
and click configure button.
URI is added
So, this was the final step. Now you have finally configured the App in Azure Active Directory. If you want to read about the benefits of using the Azure AD app then you can read here why we create an app in the Azure Active Directory.
0 Comments
Thanks for commenting. Your comment will be live soon after approval.