Is it possible to have an alternative login id in azure b2c?

Stefan K 1 Reputation point
2020-04-08T16:23:24.67+00:00

Hi,

we are planning to use azure ad b2c to authenticate our customers.

At the moment our customers can either use their email + password OR their customer number + password to login to our apps.

Is this possible in azure ad b2c?

regards Stefan

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,722 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Arturo 46 Reputation points
    2020-04-08T17:23:29.967+00:00

    It's just a matter of configuring both values as identities for the customer. One would be the email address identity and the other the username identity.

    Are you accepting a different username other than email address and customer number at this moment?

    0 comments No comments

  2. Krumböck, Stefan 1 Reputation point
    2020-04-09T06:20:44.71+00:00

    Hi,

    thanks for the responce.

    Maybe I didn't understand you correct.

    We don't have two identities. It should be the same customer but the customer can either enter his customer number OR email adress to login. (the password and other attributes stay the same).

    regards
    Stefan

    0 comments No comments

  3. AmanpreetSingh-MSFT 56,466 Reputation points
    2020-04-09T08:41:10.34+00:00

    @Krumböck, Stefan Yes, this can be done by using custom policy in B2C. Please refer to this sample: https://github.com/azure-ad-b2c/samples/tree/master/policies/username-or-email.

    With built-in user flows, you can either use username or email address for sign-in but not both.

    -----------------------------------------------------------------------------------------------------------

    Please "Accept as answer" wherever the information provided helps you to help others in the community.

    0 comments No comments