gpt4 book ai didi

Azure AD B2C 自定义策略 : Add hyperlink to custom attribute ClaimType

转载 作者:行者123 更新时间:2023-12-02 19:49:55 27 4
gpt4 key购买 nike

有没有办法向自定义策略 ClaimType 添加超链接?例如,如果我需要用户同意才能同意使用条款,我如何提供与复选框标签内嵌的使用条款的链接?

在我的自定义策略(基本 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 &lt;a href='https://...'&gt;Terms of Use&lt;/a&gt;" Value="true" SelectByDefault="false" />
</Restriction>
</ClaimType>

但是它在页面上的渲染是这样的

I agree to the <a href='https://...'>Terms of Use</a>

我可以理解为什么要这样做,但我想知道是否有其他选择。将其添加到自定义模板会将其放置在 api div 下方,并且不会让用户非常清楚。

我使用此链接作为引用https://learn.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-create-custom-attributes-profile-edit-custom

最佳答案

Is there a way to add a hyperlink to a custom policy ClaimType?

今天不行。

如果您可以接受用户体验,您可以在 api div 上方添加文本,其中包含您选择的页面的 URL,并添加一些适当的文本,例如“为了继续,您必须同意我们的条款和条件”(带有“条款和条件”超链接)。

然后复选框可能只有“我同意条款和条件”。该复选框可以记录在目录中。

关于Azure AD B2C 自定义策略 : Add hyperlink to custom attribute ClaimType,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48190961/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com