.net Blazor app stuck on on B2C Redirect Url

Matthew Scheetz 0 Reputation points
2025-03-03T21:27:05.09+00:00

I've got a Blazor Server app (.net 8). It is using B2C for authentication and is behind an application gateway.

After successful login, some users are getting redirected to the redirect url: https://example.com/signin-oidc

the app gets stuck here and users are presented with Correlation Error.

User's image

If user updates the url and removes signin-oidc so they are now just going to https://example.com they are successfully logged in to the home page.

My B2C configs are configured as so:

 "AzureAdB2C": {
    "Instance": "https://my-b2c.b2clogin.com",
    "ClientId": "",
    "Domain": "my-b2c.onmicrosoft.com",
    "ObjectId": "",
    "TenantId": "",
    "ClientSecret": "",
    "CallbackPath": "/signin-oidc",
    "SignUpSignInPolicyId": "B2C_1_MyB2C_SignIn",
    "SignedOutCallbackPath": "/signout"
}  

B2C is configured with https://example.com/signin-oidc as a redirect url.

The strange thing is that this does not happen for every user at every login.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,513 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.