首页 > 解决方案 > 注册时的 MFA 和 ForeReseetPassword 仅登录

问题描述

我已经在 MFA SocialAndLocalAccountsWithMfa上的 git hub 示例之后实施了 MFA ,并且还使用以下命令在首次登录时强制重置密码:gitHub 示例

我想仅在注册时应用 MFA 我在 MFA 中添加了 newUser 前提条件,它起作用了,但是当我添加另一个前提条件时需要: 1:仅注册时 MFA 2:登录时没有 MFA 3:第一次 MFA 登录以强制密码重置。我认为 newUser 属性和 extension_mustResetPassword 相互冲突,因为当 extension_mustResetPassword 为 true newUser 为 false 并且它跳过 MFA 时。

<OrchestrationStep Order="10" Type="ClaimsExchange"> <Preconditions> <Precondition Type="ClaimsExist" ExecuteActionsIf="false"> <Value>newUser</Value> <Action>SkipThisOrchestrationStep</Action> </Precondition> <Precondition Type="ClaimsExist" ExecuteActionsIf="false"> <Value>extension_mustResetPassword</Value> <Action>SkipThisOrchestrationStep</Action> </Precondition> <Precondition Type="ClaimEquals" ExecuteActionsIf="false"> <Value>extension_mustResetPassword</Value> <Value>true</Value> <Action>SkipThisOrchestrationStep</Action> <Precondition Type="ClaimsExist" ExecuteActionsIf="true"> <Value>isActiveMFASession</Value> <Action>SkipThisOrchestrationStep</Action> </Precondition> </Preconditions>

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

解决方案


推荐阅读