【问题标题】:How to get Azure AAD B2C forgotten password link in selfasserted data uri如何在自断言数据 uri 中获取 Azure AD B2C 忘记密码链接
【发布时间】:2023-04-06 07:30:01
【问题描述】:

由于业务需求,我们需要使用 selfasserted:2.0.0 而不是 unityssp:1.2.0 登录页面。 我无法在 azure b2c 中找到任何可用于在基于自断言数据 uri 构建的登录页面中启用忘记密码链接的文档。它只给了我启用和禁用unifiedssp 或unifiedssd 的选项。

Self Asserted:
 <DataUri>urn:com:microsoft:aad:b2c:elements:contract:selfasserted:2.0.0</DataUri>

Uniffied SSP
 <DataUri>urn:com:microsoft:aad:b2c:elements:contract:unifiedssp:1.2.0</DataUri>

我们尝试在页面中使用 javascript 添加忘记的密码,但从带有错误代码和描述的 javasript 的简单重定向不起作用。

尝试使用错误代码重定向到依赖方端点的代码:

  var element = document.getElementById("forgotPassword");
    element.onclick = function (event) {
        window.location = redirectUri;
    }

【问题讨论】:

    标签: javascript azure single-sign-on azure-ad-b2c


    【解决方案1】:

    这是因为您不能将内置的忘记密码链接放入不属于组合登录/注册编排步骤的 selfAsserted 页面。

    改为添加指向https://myapp.com/forgot-password 的链接,然后让您的应用向forgot password B2C 政策发出新的身份验证请求。

    【讨论】:

    • 好的,谢谢 Jas。 uniffiedssp 数据 uri 页面中是否可以有取消按钮?在文档中也找不到任何相关内容。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-05
    相关资源
    最近更新 更多