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
@@ -300,6 +300,7 @@ public void ConfigureServices(IServiceCollection services)
300
300
## Release Notes
301
301
| Version | Notes |
302
302
|---------|-------|
303
+
|9.0.0 | <ul><li>net9.0 support added</li><li>Sample project for net9.0 added</li><li>Readme updated</li><li>Nullable reference types enabled</li><li>Language version set to latest</li><li>Implicit usings enabled</li><li>AOT support added</li></ul> |
303
304
|8.0.0 | <ul><li>net8.0 support added</li><li>Sample project for net8.0 added</li><li>BasicSamplesClient.http file added for testing sample projects</li><li>Readme updated</li></ul> |
304
305
|7.0.0 | <ul><li>net7.0 support added</li><li>Information log on handler is changed to Debug log when Authorization header is not found on the request</li><li>Added package validations</li><li>Sample project for net7.0 added</li><li>Readme updated</li><li>Readme added to package</li></ul> |
305
306
|6.0.1 | <ul><li>net6.0 support added</li><li>Information log on handler is changed to Debug log when IgnoreAuthenticationIfAllowAnonymous is enabled [#9](https://github.com/mihirdilip/aspnetcore-authentication-basic/issues/9)</li><li>Sample project added</li><li>Readme updated</li><li>Copyright year updated on License</li></ul> |
// It requires Realm to be set in the options if SuppressWWWAuthenticateHeader is not set.
13
+
// If an implementation of IBasicUserValidationService interface is registered in the dependency register as well as OnValidateCredentials delegete on options.Events is also set then this delegate will be used instead of an implementation of IBasicUserValidationService.
// The below AddBasic without type parameter will require OnValidateCredentials delegete on options.Events to be set unless an implementation of IBasicUserValidationService interface is registered in the dependency register.
17
+
// Please note if both the delgate and validation server are set then the delegate will be used instead of BasicUserValidationService.
18
+
//.AddBasic(options =>
19
+
20
+
// The below AddBasic with type parameter will add the BasicUserValidationService to the dependency register.
21
+
// Please note if OnValidateCredentials delegete on options.Events is also set then this delegate will be used instead of BasicUserValidationService.
22
+
.AddBasic<BasicUserValidationService>(options =>
23
+
{
24
+
options.Realm="Sample Web API";
25
+
26
+
//// Optional option to suppress the browser login dialog for ajax calls.
27
+
//options.SuppressWWWAuthenticateHeader = true;
28
+
29
+
//// Optional option to ignore authentication if AllowAnonumous metadata/filter attribute is added to an endpoint.
// context.Handled(); // important! do not forget to call this method at the end.
103
+
//},
104
+
105
+
//// A delegate assigned to this property will be invoked when the authentication succeeds. It will not be called if OnValidateCredentials delegate is assigned.
106
+
//// It can be used for adding claims, headers, etc to the response.
107
+
//OnAuthenticationSucceeded = (context) =>
108
+
//{
109
+
// //custom code to add extra bits to the success response.
0 commit comments