将隐私策略添加到 Azure B2c 应用上的自定义 UI



我正在Azure AD B2C应用上使用自定义策略。我正在使用自定义 UI,在我的注册/登录策略中传递对服务器上托管的 UI 的引用,如下所示:

  <BuildingBlocks>
    <ContentDefinitions>
      <ContentDefinition Id="api.signuporsignin">
        <LoadUri>https://MyURL/index.html</LoadUri>
      </ContentDefinition>
    </ContentDefinitions>
  </BuildingBlocks>

这是有效的。但是现在我想使用我的隐私政策的 URL 向我的自定义 UI 添加一个 HTML 链接元素,并且在我执行策略时该元素没有显示。除了该链接之外,所有内容都显示出来。

可能是 Azure 上的某些缓存正在使用旧的自定义 UI?还是我错过了什么?

尝试:

<div id="api">
    <!-- Leave this element empty because Azure AD B2C will insert content here. -->
</div>
<!-- URL goes here, outside of the API div above -->
<a href="/path/to/privacypolicy.html" target="_blank">Privacy policy</a>

最新更新