Ready to post? First, try searching for your answer.
I’ve a Blazor Server App in .NET8, I’ve following the standard configuration to use Auth0 :
services.AddAuth0WebAppAuthentication(options =>
{
options.Domain = builder.Configuration[“Auth0:Domain”] ?? string.Empty;
options.ClientId = builder.Configuration[“Auth0:ClientId”] ?? string.Empty;
options.Scope = “openid profile email”;
});
It works very well in another project, but in a new one I’ve this error :
An unhandled exception occurred while processing the request.
InvalidOperationException: Cannot redirect to the authorization endpoint, the configuration may be missing or invalid.
Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleChallengeAsyncInternal(AuthenticationProperties properties)
Someone can help ?