我在Azure AD B2C应用程序上使用自定义策略。而且我正在使用自定义UI,将对托管在服务器上的UI的引用传递给我的注册/登录政策中的这样的内容:
<BuildingBlocks>
<ContentDefinitions>
<ContentDefinition Id="api.signuporsignin">
<LoadUri>https://MyURL/index.html</LoadUri>
</ContentDefinition>
</ContentDefinitions>
</BuildingBlocks>
这正在工作。但是,现在我想使用隐私策略的URL将HTML链接元素添加到自定义UI,并且在执行策略时该元素不会显示。除了该链接,所有内容都显示出来。
难道是使用旧的自定义UI的Azure缓存?还是我想念的东西?
尝试:
<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>