简体   繁体   English

在 azure b2c 自定义内容页面中访问声明值

[英]Access claim value in azure b2c custom content page

How can access claim value from a previously populated claim in a custom html page?如何从自定义 html 页面中先前填充的声明中访问声明值?

I have tried specifying a claim as a <UserInputType>Readonly</UserInputType> and then marking it as an output claim of my TechnicalProfile that uses the custom html pahe like so我尝试将声明指定为<UserInputType>Readonly</UserInputType>然后将其标记为我的TechnicalProfile的 output 声明,它使用自定义 html pahe 像这样

<OutputClaim ClaimTypeReferenceId="labsobject" />

This makes the readonly input show up but the value that shows in the box is labsobject as opposed to the actual value of the claim.这使得只读输入显示出来,但框中显示的值是labsobject ,而不是声明的实际值。 Accessing the value through JS also shows an empty string.通过 JS 访问该值也显示为空字符串。

I confirmed the claim has value as it is later correctly embedded into the token.我确认声明具有价值,因为它后来被正确地嵌入到令牌中。

To prepopulate claims on a selfAsserted technical profile, add them first as an input claim, then as an output claim to display on the screen.要在 selfAsserted 技术配置文件上预填充声明,首先将它们添加为输入声明,然后作为 output 声明显示在屏幕上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Azure AD B2C 自定义策略中自定义声明的本地化 - Localization of custom claim in Azure AD B2C custom policy 如何在 Azure B2C 自定义策略中将声明转换为 HMACSHA256 声明? - How do I transform a claim to a HMACSHA256 claim in an Azure B2C custom policy? Blazor ServerApp Azure b2C - 如何允许匿名访问网站并且不显示 SigninSignUp B2C 登录页面 web 开始 - Blazor ServerApp Azure b2C - how to Allow Anonymous Access To Website and not display SigninSignUp B2C Login page on web start 本地化 TemplateId InputParameter 值在 Azure B2C 自定义策略与 SendGrid 自定义 email 验证 - Localize TemplateId InputParameter value in Azure B2C custom policy with SendGrid custom email verification Azure B2C 自定义策略 - ID/访问令牌未通过刷新令牌获得最新声明 - Azure B2C Custom Policy - ID/Access tokens are not getting latest claims through Refresh Token Azure AD B2C 不显示自定义应用程序的登录信息 - Azure AD B2C not showing logins for custom app Azure B2C:KMSI 功能不适用于自定义策略 - Azure B2C: KMSI feature does not work with custom policy Azure 登录后AD B2C个性化内容 - Azure AD B2C personalised content after login 如何为 Azure AD B2C 自定义电子邮件配置 SMTP? - How to configure SMTP for Azure AD B2C custom emails? Azure AD B2C 未获取访问令牌 - Azure AD B2C Not getting Access Token
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM