将用户流中的应用程序声明添加到 AAD B2C 自定义策略中

Adding Application Claims from User Flow into AAD B2C Custom Policy

这是 Azure B2C 用户流的应用程序声明,我可以在其中勾选电子邮件地址并保存。 UserFlow Application Claims

如何在自定义策略中执行此操作?我正在尝试通过自定义策略将多租户登录添加到 AAD B2C,我需要 select 来自用户流的应用程序声明中的此“电子邮件地址”。 我如何 select 或在自定义策略 XML 文件中激活相同的“电子邮件地址”?

到目前为止,我尝试将 -->> OutputClaim ClaimTypeReferenceId="signInNames.emailAddress" <<-- 添加到技术配置文件中,但仍然没有成功。

您想要的声明是“preferred_username”。

尝试添加 <OutputClaim ClaimTypeReferenceId="email" PartnerClaimType="preferred_username" />.