I’m building a Blazor WebAssembly (WASM) application hosted with ASP.NET Core on .NET 6.
In my attempt to deploy to Azure App Service (Windows), I’ve run into an issue with the Auth0 configuration working locally but failing in Azure. The error I’m getting:
{
"type": "https://httpstatuses.com/500",
"title": "Internal Server Error",
"status": 500,
"detail": "The MetadataAddress or Authority must use HTTPS unless disabled for development by setting RequireHttpsMetadata=false."
}
After a quick search online, I’ve found a few posts where JwtBearerOptions.RequireHttpsMetadata (link) was set to false to resolve the issue. Reading the documentation, it states that this should not be done in production:
Gets or sets if HTTPS is required for the metadata address or authority. The default is true. This should be disabled only in development environments.
My question is how to address this issue? Is this something on the Auth0 side or the tenant configuration?