我一直试图在我的id令牌中返回onpremisessamaccountname,我似乎无法获得语法或尝试以下操作的正确方法:
"optionalClaims": {
"idToken": [
{
"name": "onprem_sam_account_name",
"source": "user",
"essential": true,
"additionalProperties": []
}
],
"optionalClaims": {
"idToken": [
{
"name": "onprem_sam_account_name",
"source": "user.onpremsamaccountname",
"essential": true,
"additionalProperties": [] }
],
"optionalClaims": {
"idToken": [
{
"name": "onprem_sam_account_name",
"source": "user.onprem_sam_account_name",
"essential": true,
"additionalProperties": [] }
],
答案 0 :(得分:0)
onprem_sam_account_name是Azure AD中受限制的声明集的一部分。您不能将其添加为令牌中的可选声明。