Azure b2c login: after logout, user is asked for email and password but not asking for further steps like MFA/email verification.

Urmila Purohit 20 Reputation points
2025-03-26T05:36:14.5933333+00:00

Hii team,
I have created azure b2c custom policy for login. Policy workflow is like: user add email and password, further user have to choose MFA or email verification option. user can go with either of them and if provide correct code the user will be able to login. User is also able to logout.

When user try to login after logout then user has to provide email and password (which is working fine) but further user is not ask for MFA/email verification. MFA/email verification is skipped and user is able to login.
How can I make sure that every time after logout, user has to follow complete login flow which include the email & password >> MFA/email verification >> successful login.

Please guide me to solve this issue

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,274 questions
{count} votes

Accepted answer
  1. Kancharla Saiteja 3,480 Reputation points Microsoft External Staff
    2025-03-27T05:23:17.1533333+00:00

    Hi @Urmila Purohit,

    We have come across your custom policy and found the following user journey with orchestration step:

         <!-- OrchestrationStep added for user's choice start -->
            <OrchestrationStep Order="5" Type="ClaimsExchange">
              <Preconditions>
                <Precondition Type="ClaimsExist" ExecuteActionsIf="true">
                  <Value>extension_mfaByMFAOrEmail</Value>
                  <Action>SkipThisOrchestrationStep</Action>
                </Precondition>
              </Preconditions>
              <ClaimsExchanges>
                <ClaimsExchange Id="SelfAsserted-Select-MFA-Method" TechnicalProfileReferenceId="SelfAsserted-Select-MFA-Method" />
              </ClaimsExchanges>
            </OrchestrationStep>
            <!-- OrchestrationStep added for user's choice end -->
    

    This orchestration step is validating your claims of MFA whether it has been provided previously or not. Since you have already provided in the first sign in, so it is skipping the MFA in you re authentication. I would recommend checking on this and change it accordingly which make sure the user provide MFA for re authentication as well.

    I hope this information is helpful. Please feel free to reach out if you have any further questions.

    If the answer is helpful, please click "Accept Answer" and kindly "upvote it". If you have extra questions about this answer, please click "Comment".


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.