azure - 如何将自定义 JavaScript 添加到 Azure AD B2C 登录流程

标签 azure azure-ad-b2c

我想将自定义 JS 添加到 Azure AD B2C 流程,但我不知道如何执行此操作。

我读到the docs想了10遍还是没明白。

到目前为止我所理解的

  1. 我有一个注册并登录(推荐)用户流程
  2. 我在属性中启用了JavaScript 强制页面布局(预览)
  3. 我为本地帐户注册页面选择了2.1.2 页面布局版本(这是提供的包含 HTML、CSS 和 JavaScript 的打包内容的版本通过 Azure AD B2C)

据我现在了解的文档,我能够以某种方式将 JavaScript 注入(inject)到登录页面中,无需使用自定义页面内容选项。

文档指出,要做到这一点,我需要

Include this code snippet into your sign-up or sign-in template for a self-asserted page

我可以在哪里以及如何做到这一点?

最佳答案

确实有点模糊。

事实上我们必须使用 custom page option .

您需要将代码片段包含到 your HTML content 中.

参见this article了解详细步骤。

关于azure - 如何将自定义 JavaScript 添加到 Azure AD B2C 登录流程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66186321/

相关文章:

Azure 托管标识错误 - 找不到访问 token 的标识

azure - 如何获得 azure b2c promise 的不记名 token 声明?

azure - 登录时没有收到 oid 响应?

azure - Xamarin MSAL Azure AD B2C 登录显示浏览器而不是 Web View

Azure Cosmos DB 客户端在下面抛出 "HttpRequestException: attempt was made to access a socket in a way forbidden by its access permissions"

Azure DevOps 发布管道变量值未更新

angular - 如何将自定义值传递给 Azure AD B2C 并需要将该参数与响应或通用重定向 URI 一起返回?

azure - 本地化 Azure B2C 错误消息 'A user with the specified credential could not be found' 错误消息'

iis-7 - URL 重写模块、Azure 和 web.config

使用 php 发送时,Azure Face api 返回 401