B2C technical profile for username and password

Vikas Tiwari 766 Reputation points
2020-08-11T05:09:25.723+00:00

Hi,

I have created user through graph service client and setup following properties:

SignInType = "userName",
 Issuer = tenantId,
 IssuerAssignedId = siteUser.userId

I am looking for example documentation to set technical profile as username and password instead of email address. So that when user will sign-in using credentials I can call rest api which will validate through legacy identity provider and give result back to B2C app (trying to achieve seamless user migration).

Thanks.

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,652 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,563 questions
0 comments No comments
{count} votes

Accepted answer
  1. AmanpreetSingh-MSFT 56,311 Reputation points
    2020-08-11T06:04:53.4+00:00

    Hello @Vikas Tiwari

    For scenarios where you would like users to sign up and sign in with Usernames rather than Emails, you can use the sample below:

    https://github.com/azure-ad-b2c/samples/tree/master/policies/username-signup-or-signin/policy

    You need to chain the Username_TrustFrameworkExtensions.xml file with your existing TrustFrameworkBase and TrustFrameworkExtensions file, which will look like:

    SignupOrSignIn > Username_TrustFrameworkExtensions > TrustFrameworkExtensions > TrustFrameworkBase.

    For this purpose, base policy tag in Username_TrustFrameworkExtensions.xml file should be:

    <BasePolicy>  
        <TenantId>yourtenant.onmicrosoft.com</TenantId>  
        <PolicyId>B2C_1A_TrustFrameworkExtensions</PolicyId>  
    </BasePolicy>  
    

    And in the SignupOrSignIn.xml file, it should be:

    <BasePolicy>  
        <TenantId>yourtenant.onmicrosoft.com</TenantId>  
        <PolicyId>B2C_1A_Username_TrustFrameworkExtensions</PolicyId>  
    </BasePolicy>  
    

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


0 additional answers

Sort by: Most helpful