Azure ad b2c 将DefaultValue设置为DateTime.Now()等效值

Azure ad b2c 将DefaultValue设置为DateTime.Now()等效值,azure-ad-b2c,identity-experience-framework,Azure Ad B2c,Identity Experience Framework,如何将默认值设置为当前日期和时间 索赔类型供参考: 某个日期/时间 日期 约会时间 文本框 更新 无法上载策略。原因:验证失败:在租户“my tenant.onmicrosoft.com”的策略“B2C_1A_TRUSTFRAMEWORK_BUILDINGBLOCKS”中发现1个验证错误。OutputClaims在id为“GetSystemDateTime”的ClaimsFormation中与TransformationMethod“GetCurrentDateTime”不匹配 以下Ou

如何将默认值设置为当前日期和时间


索赔类型
供参考:


某个日期/时间
日期
约会时间
文本框
更新

无法上载策略。原因:验证失败:在租户“my tenant.onmicrosoft.com”的策略“B2C_1A_TRUSTFRAMEWORK_BUILDINGBLOCKS”中发现1个验证错误。OutputClaims在id为“GetSystemDateTime”的ClaimsFormation中与TransformationMethod“GetCurrentDateTime”不匹配

以下OutputClaims已在策略中声明,但TransformMethod不应声明:[Date]currentDateTime。TransformMethod需要以下OutputClaims,但未在策略中声明:[DateTime]currentDateTime


不知道我是否需要更新的
base.xml
文件?想法 您可以声明类型为GetCurrentDateTime的声明转换,然后从技术配置文件中将其作为输出声明转换调用:


另外,
ClaimType
DataType
必须是
dateTime


...
日期时间
...

谢谢索赔类型的数据类型必须从
date
更改为
dateTime
。哦,我试试看,谢谢!并提交仅包含日期的XSD的PR!