To register and configure an API, follow these steps:
-
Login the Azure portal. On the dashboard, click App registration> New registration.
-
Type a valid name for the API and select the respective option in Support account types.
-
Click Register.
The app gets registered, and an app page with the provided name gets created. Now, proceed with the configure steps.
-
In the left navigation, click Token configuration> Add optional claim.
-
In the Token type, select Access, and in Claim, select aud.
If you want to map users with SMAT user email, select email in the Claim options.
-
Click Add. On the pop-up, select Turn on the Microsoft Graph email permission (required for claims to appear in token), and then click Add.
-
In the left navigation, click Expose an API.
-
In the Application ID URI, click Set. Value gets auto-populated (value must be same as the Application (client) ID), and then click Save.
-
Click Add a scope. In the scope name (copy paste the Application (client) ID from the created app overview page, refer the image for reference).
-
Type the other details as required, select enable in the State, and then click Add scope.
App registration and configuration for web APIs is completed.