如何验证自定义策略中的 strongAuthenticationEmailAddress?

How can I verify the strongAuthenticationEmailAddress in a custom policy?

我的用户使用用户名连接并提供用于密码恢复的电子邮件,使用为 userId 配置的默认组合 signup/signin 用户流。明确地说,这是 B2C 中“身份验证联系信息”部分中的电子邮件。

我希望我的用户能够更改此电子邮件。 This page 让我开始使用自定义策略并且它有效,但我希望使用标准 B2C 电子邮件验证来验证 strongAuthenticationEmailAddress 声明。我可以让常规电子邮件声明得到验证,但尝试将相同的逻辑应用于 strongAuthenticationEmailAddress 要么什么都不做,要么完全跳过这一步,具体取决于我的尝试。

所以基本上我想要这个(或者任何正确的方法)。

<OutputClaim ClaimTypeReferenceId="strongAuthenticationEmailAddress" PartnerClaimType="Verified.strongAuthenticationEmailAddress" Required="true"/>

像这样进行电子邮件验证

<OutputClaim ClaimTypeReferenceId="email" PartnerClaimType="Verified.email" Required="true"/>

像这样:

<OutputClaim ClaimTypeReferenceId="strongAuthenticationEmailAddress" PartnerClaimType="Verified.email" Required="true"/>