我创建了一个自定义策略来使用以下示例代码中的身份验证器应用程序:
https://github.com/azure-ad-b2c/samples/blob/master/policies/totp/policy/TrustFrameworkExtensions_TOTP.xml
我遇到的问题是,它将注册一个新用户,但是当它应该重定向到页面以显示二维码时,它会失败,并在 AI 中显示以下错误。
Exception Message:A Claim of ClaimType with id "totpIdentifier" was not found, which is required by the ClaimsTransformationImpl of Type "Microsoft.Cpim.Data.Transformations.FormatStringMultipleClaimsTransformation" for TransformationMethod "FormatStringMultipleClaims" referenced by the ClaimsTransformation with id "CreateUriLabel" in policy xyz
用户已正确创建,因为下次登录将显示二维码,完成该过程后,将给我我的 token 。
我确实理解该错误,但我不知道如何修复它。
我的猜测是事件顺序不正确,但应在“TotpFactor-Input”之后调用“CreateUriLabel”,其中“totpIdentifier”已设置。
有人知道该看什么吗?
最佳答案
为了完成这一点,它最终是导致问题的品牌文件。
关于Azure B2C 自定义策略身份验证应用程序 - totpIdentifier 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73684341/