Skip to content

Commit 510334a

Browse files
authored
Merge pull request #327 from aspnetzero/update-entra-id-with-open-id-integrating-blog-post
Updated Integrating Microsoft Entra ID with Open Id Blog Post
2 parents 7171e9a + 28dd84e commit 510334a

File tree

2 files changed

+44
-12
lines changed

2 files changed

+44
-12
lines changed

blog-posts/en/integrating-entra-id-with-asp.net-zero-angular.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,27 @@ Each tenant can also configure OpenID Connect settings for their own account. To
1919
"ValidateIssuer": "false",
2020
"ResponseType": "code",
2121
"ClaimsMapping": [
22-
{
23-
"claim": "unique_name",
24-
"key": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier"
25-
}
26-
]
22+
{
23+
"claim": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier",
24+
"key": "id"
25+
},
26+
{
27+
"claim": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name",
28+
"key": "name"
29+
},
30+
{
31+
"claim": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname",
32+
"key": "given_name"
33+
},
34+
{
35+
"claim": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname",
36+
"key": "family_name"
37+
},
38+
{
39+
"claim": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress",
40+
"key": "email"
41+
}
42+
]
2743
}
2844
```
2945

blog-posts/en/integrating-entra-id-with-asp.net-zero-mvc.md

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,29 @@ Each tenant can also configure OpenID Connect settings for their own account. To
1717
"ClientId": "your_application(client)_id",
1818
"ClientSecret": "your_client_secret_value",
1919
"ValidateIssuer": "false",
20-
"ResponseType": "code",
21-
"ClaimsMapping": [
22-
{
23-
"claim": "unique_name",
24-
"key": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier"
25-
}
26-
]
20+
"ResponseType": "id_token",
21+
"ClaimsMapping": [
22+
{
23+
"claim": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier",
24+
"key": "id"
25+
},
26+
{
27+
"claim": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name",
28+
"key": "name"
29+
},
30+
{
31+
"claim": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname",
32+
"key": "given_name"
33+
},
34+
{
35+
"claim": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname",
36+
"key": "family_name"
37+
},
38+
{
39+
"claim": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress",
40+
"key": "email"
41+
}
42+
]
2743
}
2844
```
2945

0 commit comments

Comments
 (0)