Add the ability to override the SuppressWWWAuthenticateHeader based on path.
Is your feature request related to a problem? Generally I want SuppressWWWAuthenticateHeader set to true, however for a Library UI (Hangfire) I want to use Basic Auth and need to trigger the www-authenticate header for basic auth on a specific path.
Describe the feature you would like add a configuration option and associated code to BasicAuthenticationOptions for SuppressWWWAuthenticateHeaderPathOverride and BasicAuthenticationHandler.
Additional context
You should be able to do this already with sub applications,
app.UseEndpoints(endpoints =>
{
var subApp = app.New();
subApp.UseMiddleware<FooMiddleware>();
endpoints.Map("/foo", subApp.Build());
}
This ought to allow you to setup different configurations - does that not work?
Its not something I have tried. Ill give that a go and see how it works out. (also didn't even know about sub apps).
The library at issue is Hangfire so we will see.