.net Blazor app stuck on on B2C Redirect Url
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.
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.