Azure AD B2C自定义策略 [英] Azure AD B2C Custom Policy
问题描述
我已经使用Azure AD B2C自定义策略实现了登录/注册策略. 在执行此操作时,我遇到了两个问题:
I have implemented sign in/signup policies using Azure AD B2C custom policy. I came across two problems while doing this:
-
有没有一种方法可以让我添加一个按钮来登录点击后重定向的页面? 还是可以在HTML文档中添加超链接并对其调用策略?
Is there a method so I can add a button to sign in page which redirects on click? Or can I add a hyperlink in HTML document and call the policy to it?
是否可以在另一个标签(如AJAX)中的文本框中显示我们键入的内容? 使用XML创建自定义策略后,我可以为此使用数据绑定吗?
Is it possible to display what we type on a textbox in another label like in AJAX? As custom policies are created using XML, can I use data binding for this?
推荐答案
目前,Azure AD B2C页面仅支持HTML/CSS自定义,不支持任何基于JavaScript的修改.
除了使用客户端JavaScript之外,我想不出任何其他方式来实现您描述的两种行为.
I can't think of any other way for you to achieve either of the two behaviors your described other than using client side JavaScript.
您可以在Azure AD B2C反馈论坛中对该问题进行投票来支持该问题并保持最新状态:
You can support this ask and stay up to date on its progress by voting for it in the Azure AD B2C feedback forum: Add support for JavaScript inside the custom UI branding page
这篇关于Azure AD B2C自定义策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!