Azure AD B2C 自定义策略:将超链接添加到自定义属性 ClaimType
Azure AD B2C Custom Policies: Add hyperlink to custom attribute ClaimType
有没有办法将 hyperlink 添加到自定义保单 ClaimType?例如,如果我需要用户同意才能同意使用条款,我如何在复选框标签内提供 link 到使用条款?
在我的自定义策略(基础 xml)中,我尝试添加以下内容:
<ClaimType Id="extension_TermsOfUseConsent">
<DisplayName>Agree to Terms of Use</DisplayName>
<DataType>boolean</DataType>
<UserInputType>CheckboxMultiSelect</UserInputType>
<Restriction>
<Enumeration Text="I agree to the <a href='https://...'>Terms of Use</a>" Value="true" SelectByDefault="false" />
</Restriction>
</ClaimType>
但它呈现在页面上是这样的
I agree to the <a href='https://...'>Terms of Use</a>
我能理解它为什么这样做,但我想知道是否有其他选择。将其添加到自定义模板中会将其置于 api
div 下方,并且不会让用户非常清楚。
Is there a way to add a hyperlink to a custom policy ClaimType?
今天不行。
如果您可以接受用户体验,您可以在 api div 上方添加文本 URL 到您选择的页面并添加一些适当的文本,例如"In order to proceed, you must agree to our terms and conditions"(带有 "terms and condition" 超链接)。
那么复选框可以只有 "I agree to terms and conditions"。该复选框可以记录在目录中。
- 将您设计中的 link (HTML、CSS) 添加到
<div id="api">...</div>
的外部范围内。
- 将
<a href="..."></a>
移至 CSS 的复选框。
有没有办法将 hyperlink 添加到自定义保单 ClaimType?例如,如果我需要用户同意才能同意使用条款,我如何在复选框标签内提供 link 到使用条款?
在我的自定义策略(基础 xml)中,我尝试添加以下内容:
<ClaimType Id="extension_TermsOfUseConsent">
<DisplayName>Agree to Terms of Use</DisplayName>
<DataType>boolean</DataType>
<UserInputType>CheckboxMultiSelect</UserInputType>
<Restriction>
<Enumeration Text="I agree to the <a href='https://...'>Terms of Use</a>" Value="true" SelectByDefault="false" />
</Restriction>
</ClaimType>
但它呈现在页面上是这样的
I agree to the <a href='https://...'>Terms of Use</a>
我能理解它为什么这样做,但我想知道是否有其他选择。将其添加到自定义模板中会将其置于 api
div 下方,并且不会让用户非常清楚。
Is there a way to add a hyperlink to a custom policy ClaimType?
今天不行。
如果您可以接受用户体验,您可以在 api div 上方添加文本 URL 到您选择的页面并添加一些适当的文本,例如"In order to proceed, you must agree to our terms and conditions"(带有 "terms and condition" 超链接)。
那么复选框可以只有 "I agree to terms and conditions"。该复选框可以记录在目录中。
- 将您设计中的 link (HTML、CSS) 添加到
<div id="api">...</div>
的外部范围内。 - 将
<a href="..."></a>
移至 CSS 的复选框。