Skip to content

Azure B2C Login Username or Email with MFA choices #672

@germanyesid

Description

@germanyesid

I have been working on creating a custom policy to allow users to log in using either their username or email, along with the option to select their preferred MFA method.

As a base, I used the example policy SignUp_SignIn_PhoneOrEmailMFA. While everything works correctly when logging in with an email, I am encountering an issue when logging in with a username. Specifically, the correct email value associated with the user is not retrieved.

Login with Email (The flow works as expected, and the correct email is retrieved)
Image

Login with username (The email is not retrieved correctly)

Image

Could you please assist me in resolving this issue? I would like to ensure that the correct email is retrieved regardless of whether the user logs in with their username, email or another method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions