【发布时间】:2020-07-30 08:56:48
【问题描述】:
我需要在数据类型“DateTime”的自定义策略中使用扩展属性。我将声明类型定义如下。
<ClaimType Id="extension_myAttribute">
<DisplayName>myAttrbute</DisplayName>
<DataType>dateTime</DataType>
<UserHelpText>This is for X</UserHelpText>
</ClaimType>
我希望能够将此属性与当前时间进行比较,从而指导用户旅程。但是,当我查看应用程序见解时,该值是“未定义的”,因此将其与包含当前时间的声明类型进行比较对我没有好处。即使我将属性添加到依赖方文件中的 OutputClaims 中,该属性也作为声明丢失。
第一季度。以这种方式声明就足够了吗? Q2。我是否也需要在门户的用户属性下创建它?我不确定,因为在门户中只有数据类型 int、boolean 和 string 可用。我可以使用其中任何一个来代替 dateTime 吗?
编辑 这是使用属性的转换
<ClaimsTransformation Id="SetMyAttribute" TransformationMethod="GetCurrentDateTime">
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="extension_MyAttribute" TransformationClaimType="currentDateTime" />
</OutputClaims>
</ClaimsTransformation>
感谢您的帮助!
【问题讨论】:
标签: xml azure azure-active-directory azure-ad-b2c azure-ad-graph-api