Azure B2C:socialIdpUserId(或 issuerUserId)声明的目的

Azure B2C: Purpose of socialIdpUserId (or issuerUserId) claim

虽然浏览了 Azure B2C Custom Policy Starter Pack, I noticed that the claim named socialIdpUserId is declared in the LocalAccount's Base Framework file,但从未在文件或从它继承的文件中的任何其他地方使用过。但是,我在存储库中进行了搜索,它的使用方式类似于 issuerUserId

我想知道,socialIdpUserId 原来是 issuerUserId 现在的样子吗?如果是这样,为什么 Azure B2C 文档中没有提到 socialIdpUserIdissuerUserId(除非在示例中)?

socialIdpUserId 已重命名为 issuerUserId。它应始终映射到来自联合 IdP 的声明名称,该名称提供用户唯一标识符,例如 objectId。

issuerUserId 的目的是允许将用户从联合 IdP 映射到在代表该用户的 AAD B2C 目录中创建的用户。

您会看到 issuerUserIdidentityProvider 声明相结合以创建 alternativeSecurityId。这种声明组合允许我们始终将特定用户从联合 IdP 映射到 B2C 目录中的特定用户。

我会尽快记录下来 ;)