(方法3) Web アプリコードによる ID トークンの検証
アプリコードによる Easy Auth X-Ms-Client-Principal ヘッダのデコード
29
• X-Ms-Client-Principal に含まれる JSON object 構造の例 [1]
{
"auth_typ": "aad",
"name_typ": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress",
"role_typ": "http://schemas.microsoft.com/ws/2008/06/identity/claims/role",
"claims": [
{
"typ": "http://schemas.microsoft.com/identity/claims/objectidentifier",
"val": "5b5450db-eb26-4c1a-981c-ba1d25f0483d"
},
{
"typ": "preferred_username",
"val": "
[email protected]"
},
{
"typ": "groups",
"val": "f08bbbea-b793-4a36-a5fc-136c18d8aa8f"
},
{
"typ": "groups",
"val": "14a87ffa-0801-49bf-a515-3d259a2a9f8f"
},
// ....
]
}
[1] https://learn.microsoft.com/ja-jp/azure/app-service/configure-authentication-user-identities
"typ":"groups" のように複数回
登場するクレームに注意