Skip to content

Commit f10520b

Browse files
committed
Indent
1 parent 0b7b8a5 commit f10520b

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

articles/active-directory/develop/custom-extension-get-started.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.service: active-directory
1010
ms.subservice: develop
1111
ms.topic: how-to
1212
ms.workload: identity
13-
ms.date: 05/23/2023
13+
ms.date: 08/16/2023
1414
ms.author: davidmu
1515
ms.custom: aaddev
1616
ms.reviewer: JasSuri
@@ -235,14 +235,14 @@ Create a service principal in the tenant for the authenticationeventsAPI app reg
235235

236236
Still in Graph Explorer, run the following request. Replace `{authenticationeventsAPI_AppId}` with the value of **appId** that you recorded from the previous step.
237237

238-
```http
239-
POST https://graph.microsoft.com/v1.0/servicePrincipals
240-
Content-type: application/json
238+
```http
239+
POST https://graph.microsoft.com/v1.0/servicePrincipals
240+
Content-type: application/json
241241

242-
{
243-
"appId": "{authenticationeventsAPI_AppId}"
244-
}
245-
```
242+
{
243+
"appId": "{authenticationeventsAPI_AppId}"
244+
}
245+
```
246246

247247
### Set the App ID URI, access token version, and required resource access
248248

@@ -253,34 +253,34 @@ In Graph Explorer, run the following request.
253253
- Set the `{authenticationeventsAPI_AppId}` value with the **appId** that you recorded earlier.
254254
- An example value is `api://authenticationeventsAPI.azurewebsites.net/f4a70782-3191-45b4-b7e5-dd415885dd80`. Take note of this value as you'll use it later in this article in place of `{functionApp_IdentifierUri}`.
255255
256-
```http
257-
POST https://graph.microsoft.com/v1.0/applications/{authenticationeventsAPI_ObjectId}
258-
Content-type: application/json
259-
256+
```http
257+
POST https://graph.microsoft.com/v1.0/applications/{authenticationeventsAPI_ObjectId}
258+
Content-type: application/json
259+
260+
{
261+
"identifierUris": [
262+
"api://{Function_Url_Hostname}/{authenticationeventsAPI_AppId}"
263+
],
264+
"api": {
265+
"requestedAccessTokenVersion": 2,
266+
"acceptMappedClaims": null,
267+
"knownClientApplications": [],
268+
"oauth2PermissionScopes": [],
269+
"preAuthorizedApplications": []
270+
},
271+
"requiredResourceAccess": [
260272
{
261-
"identifierUris": [
262-
"api://{Function_Url_Hostname}/{authenticationeventsAPI_AppId}"
263-
],
264-
"api": {
265-
"requestedAccessTokenVersion": 2,
266-
"acceptMappedClaims": null,
267-
"knownClientApplications": [],
268-
"oauth2PermissionScopes": [],
269-
"preAuthorizedApplications": []
270-
},
271-
"requiredResourceAccess": [
273+
"resourceAppId": "00000003-0000-0000-c000-000000000000",
274+
"resourceAccess": [
272275
{
273-
"resourceAppId": "00000003-0000-0000-c000-000000000000",
274-
"resourceAccess": [
275-
{
276-
"id": "214e810f-fda8-4fd7-a475-29461495eb00",
277-
"type": "Role"
278-
}
279-
]
276+
"id": "214e810f-fda8-4fd7-a475-29461495eb00",
277+
"type": "Role"
280278
}
281279
]
282280
}
283-
```
281+
]
282+
}
283+
```
284284

285285
### Register a custom authentication extension
286286

0 commit comments

Comments
 (0)