| author | kengaderdus |
|---|---|
| ms.service | active-directory-b2c |
| ms.subservice | B2C |
| ms.topic | include |
| ms.date | 10/11/2024 |
| ms.author | kengaderdus |
- Select App registrations.
- Select the webapi1 application to open its Overview page.
- Under Manage, select Expose an API.
- Next to Application ID URI, select the Add link.
- Replace the default value (a GUID) with
api, and then select Save. The full URI is shown, and should be in the formathttps://your-tenant-name.onmicrosoft.com/api. When your web application requests an access token for the API, it should add this URI as the prefix for each scope that you define for the API. - Under Scopes defined by this API, select Add a scope.
- Enter the following values to create a scope that defines read access to the API, then select Add scope:
- Scope name:
demo.read - Admin consent display name:
Read access to demo API - Admin consent description:
Allows read access to the demo API
- Scope name:
- Select Add a scope, enter the following values to add a scope that defines write access to the API, and then select Add scope:
- Scope name:
demo.write - Admin consent display name:
Write access to demo API - Admin consent description:
Allows write access to the demo API
- Scope name: