You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// options.FallbackPolicy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build();
59
59
//});
60
60
}
61
61
@@ -153,6 +153,10 @@ Default value is false.
153
153
When set to true, it will NOT return WWW-Authenticate response header when challenging un-authenticated requests.
154
154
When set to false, it will return WWW-Authenticate response header when challenging un-authenticated requests.
155
155
156
+
#### IgnoreAuthenticationIfAllowAnonymous
157
+
Default value is false.
158
+
If set to true, it checks if AllowAnonymous filter on controller action or metadata on the endpoint which, if found, it does not try to authenticate the request.
159
+
156
160
#### Events
157
161
The object provided by the application to process events raised by the basic authentication middleware.
158
162
The application may implement the interface fully, or it may create an instance of BasicEvents and assign delegates only to the events it wants to process.
@@ -187,9 +191,9 @@ Please note that, by default, with ASP.NET Core, all the requests are not challe
187
191
However, if you want all the requests to challenge authentication by default, depending on what you are using, you can add the below options line to *ConfigureServices* method on *Startup* class.
0 commit comments