[英]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.