首页 文章

Azure B2C - 如何添加其他身份验证字段?

提问于
浏览
0

我想在我的用户登录页面中添加其他用户输入字段 . 通过为我的字段添加新的claimType,然后将声明引用为OutputClaim,如https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-configure-signup-self-asserted-custom中的示例,将其他字段添加到用户注册页面是微不足道的 .

但是,当我将相同的OutputClaim字段添加到标准登录行程(例如SelfAsserted-LocalAccountSignin-Email)时,它将不会显示新字段,但将失败验证并显示我的字段缺失的错误 . 将它添加为InputClaim没有任何区别 .

任何帮助非常感谢 .

1 回答

  • 0

    想要将其他用户输入字段添加到我的用户登录页面 .

    不,这是不可能的,它是设计的 .

    Workaround

    成功登录后再添加一页,并从下一个自我声明的页面获取其他值作为输入 .

    Advantage of adding new self-asserted page

    如果您添加可以同时适用于社交帐户和本地帐户的新页面 .

相关问题