Azure AdB2C 中自定义策略中的“issuerUserId”

时间:2021-05-19 09:14:48

标签: azure-ad-b2c azure-ad-b2c-custom-policy

我正在研究 AdB2C 自定义政策。我在 B2C_1A_TrustFrameworkBase.xml 文件中添加了自定义策略所需的一些字段,但我不断收到此错误。

enter image description here

请让我知道我缺少什么以及“issuerUserId”是什么

2 个答案:

答案 0 :(得分:0)

尝试在 TrustFrameworkBase.xml 的 ClaimsSchema 中添加 ClaimType

<BuildingBlocks>
<ClaimsSchema>
...
  <ClaimType Id="issuerUserId">
    <DisplayName>Issuer User Id</DisplayName>
    <DataType>string</DataType>
  </ClaimType>
...

答案 1 :(得分:0)

如果您使用的是“LocalAndSocial”入门包,则 issuerUserId 已在基本策略中。

它用于 Facebook 技术提供商。

你可能删除了那个吗?