Azure B2C 自定义策略身份验证应用程序 - totpIdentifier 问题

标签 azure azure-ad-b2c-custom-policy totp


我创建了一个自定义策略来使用以下示例代码中的身份验证器应用程序: 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/

相关文章:

javascript - 如何解决 "Access Denied: Invalid token, wrong code"的问题?

spring-boot - 使用 Spring Boot 2 和 Spring Security 5 进行多因素身份验证

azure - 有人可以解释一下 Delta Lake "gold"表是如何推送到数据仓库中的吗?有没有办法从增量格式转换为数据帧?

azure - 如何使用 Azure Az CLI 以编程方式创建配置了 Autopilot 的 Azure Cosmos DB

azure - 从 VisualStudio 发布 Azure Functions 需要付费吗?

c# - 如何在 Azure 广告 B2C 上使用自定义角色?

powershell - 调用 New-AzureStorageTable cmdlet 时 VSTS 发布 Azure Powershell 任务失败

azure-ad-b2c - 有一种方法可以重定向到 Azure AD B2C 中的另一个页面吗?

reactjs - 使用 React 应用程序以及权威链接结构的 Azure B2C 身份验证的配置文件的结构是什么?

php - 通过 Authenticator 应用程序将 2FA 或 OTP(通过电子邮件)添加到 Laravel Fortify 2FA