繁体   English   中英

Azure B2C:如何使用 MFA 的 OtherMails 属性

[英]Azure B2C: How to use OtherMails attribute for MFA

我正在使用 B2C 自定义策略,它允许使用用户名而不是传统的 email 进行注册/登录。

作为注册过程的一部分,我将 Email 保存在 otherMails 属性中。

when choosing MFA as Email, I don't see the email field prepopulated with the email that I have on user record.

otherMails 属性可以用于 MFA email 吗?

<ClaimsTransformation Id="CreateEmailsFromOtherMailsAndSignInNamesInfo" TransformationMethod="AddItemToStringCollection">
    <InputClaims>
            <InputClaim ClaimTypeReferenceId="otherMails" TransformationClaimType="collection" />
    </InputClaims>

<TechnicalProfile Id="AAD-UserWriteUsingLogonName">
    <PersistedClaims>
        <PersistedClaim ClaimTypeReferenceId="otherMails" />
    </PersistedClaims>
    <OutputClaims>
        <OutputClaim ClaimTypeReferenceId="otherMails" /> 
    </OutputClaims>

<TechnicalProfile Id="LocalAccountSignUpWithLogonName">
    <OutputClaims>
        <OutputClaim ClaimTypeReferenceId="otherMails" /> 
    </OutputClaims>
<TechnicalProfile Id="LocalAccountDiscoveryUsingUserNameAndValidateStrongAuthenticationEmailAddress">
    <OutputClaims>
        <OutputClaim ClaimTypeReferenceId="otherMails" /> 
    </OutputClaims>
<TechnicalProfile Id="AAD-ReadCommon">
    <OutputClaims>
        <OutputClaim ClaimTypeReferenceId="otherMails" />
    </OutputClaims>

<RelyingParty>
    <OutputClaim ClaimTypeReferenceId="otherMails" PartnerClaimType="emails" />
</RelyingParty>

用于 MFA 的字段是“strongAuthenticationEmailAddress”。

这是后端使用的,所以我怀疑它是否可以更改。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM