question

SakthivelPalani-8864 avatar image
0 Votes"
SakthivelPalani-8864 asked MarileeTurscak-MSFT commented

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

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.

azure-ad-b2c
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MarileeTurscak-MSFT avatar image
0 Votes"
MarileeTurscak-MSFT answered

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://docs.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


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SakthivelPalani-8864 avatar image
0 Votes"
SakthivelPalani-8864 answered MarileeTurscak-MSFT commented

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

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I don't know too much about Blazor but I don't see why not. I looked around and saw some examples of this on Stack Overflow, but couldn't find any official examples.

0 Votes 0 ·