I am integrating Azure AD b2c in blazor web assembly application. I have created "sign up and sign in" user flow.

Sakthivel Palani 21 Reputation points
2021-10-07T14:35:29.533+00:00

I am integrating Azure AD b2c in blazor web assembly application. I have created "sign up and sign in" user flow. In my application, I have separate button for sign in and sign in button. When i click the sign in button its redirect to azure AD b2c sign up and sign in user flow and its showing the login page. But when i click the signup button, its redirecting to sign in page instead of sign up page. can you please give me the reason and solution for my problem.

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,753 questions
0 comments No comments
{count} votes

Accepted answer
  1. Marilee Turscak-MSFT 36,246 Reputation points Microsoft Employee
    2021-10-07T20:03:45.227+00:00

    By default it will go to the sign in if you are using a sign up or sign in policy.

    Some options you could use:

    1) Add a custom domain so that the users are directed to yourdomain.com rather than yourdomain.b2clogin.com https://learn.microsoft.com/en-us/azure/active-directory-b2c/custom-domain?pivots=b2c-user-flow

    2) There isn't a query parameter or policy setting that will take the user straight to the local account sign-up pages in a SignUporSignIn policy, so you could also accomplish this by creating a separate sign-up policy to direct them directly to sign up.

    3) Another option is to use a sample and add some custom initialization.

    Let me know if this helps!

    Related threads:
    Log in to Azure AD B2C without redirecting to b2clogin Microsoft page
    B2C: Redirect to "sign-up" flow of a "Sign-up or Sign-in" policy

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Sakthivel Palani 21 Reputation points
    2021-10-08T14:30:16.74+00:00

    is it possible to write custom middleware for blazor web assembly?