Relative Content

Tag Archive for azureazure-ad-b2crazor-pages.net-8.0

Azure B2C App Always Redirects to /MicrosoftIdentity/Account/Error

I have a simple .NET 8 razor pages test application where I’m trying to leverage an Azure B2C tenant for identity. I have Azure AD B2C configured in my program.cs file, and I have added authorization to all pages so that an unauthenticated user is always directed to log in, but rather than getting the azure b2c login page, I keep getting directed to https://localhost:7027/MicrosoftIdentity/Account/Error, which results in a 404 error. Im doing this in debug mode in visual studio. Im not sure what I may have configured incorrectly, as I don’t have any real experience in B2C prior to this.

Azure B2C App Always Redirects to /MicrosoftIdentity/Account/Error

I have a simple .NET 8 razor pages test application where I’m trying to leverage an Azure B2C tenant for identity. I have Azure AD B2C configured in my program.cs file, and I have added authorization to all pages so that an unauthenticated user is always directed to log in, but rather than getting the azure b2c login page, I keep getting directed to https://localhost:7027/MicrosoftIdentity/Account/Error, which results in a 404 error. Im doing this in debug mode in visual studio. Im not sure what I may have configured incorrectly, as I don’t have any real experience in B2C prior to this.