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
// It requires Realm to be set in the options if SuppressWWWAuthenticateHeader is not set.
41
-
// 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.
// It requires Realm to be set in the options if SuppressWWWAuthenticateHeader is not set.
41
+
// 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.
45
-
// Please note if both the delgate and validation server are set then the delegate will be used instead of BasicUserValidationService.
46
-
//.AddBasic(options => { options.Realm = "My App"; });
44
+
// 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.
45
+
// Please note if both the delgate and validation server are set then the delegate will be used instead of BasicUserValidationService.
46
+
//.AddBasic(options => { options.Realm = "My App"; });
47
47
48
-
// The below AddBasic with type parameter will add the BasicUserValidationService to the dependency register.
49
-
// Please note if OnValidateCredentials delegete on options.Events is also set then this delegate will be used instead of BasicUserValidationService.
// It requires Realm to be set in the options if SuppressWWWAuthenticateHeader is not set.
90
-
// 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.
// It requires Realm to be set in the options if SuppressWWWAuthenticateHeader is not set.
90
+
// 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.
94
-
// Please note if both the delgate and validation server are set then the delegate will be used instead of BasicUserValidationService.
95
-
//.AddBasic(options => { options.Realm = "My App"; });
93
+
// 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.
94
+
// Please note if both the delgate and validation server are set then the delegate will be used instead of BasicUserValidationService.
95
+
//.AddBasic(options => { options.Realm = "My App"; });
96
96
97
-
// The below AddBasic with type parameter will add the BasicUserValidationService to the dependency register.
98
-
// Please note if OnValidateCredentials delegete on options.Events is also set then this delegate will be used instead of BasicUserValidationService.
@@ -168,15 +168,15 @@ The application may implement the interface fully, or it may create an instance
168
168
169
169
-##### OnAuthenticationSucceeded
170
170
A delegate assigned to this property will be invoked when the authentication succeeds. It will not be called if OnValidateCredentials delegate is assigned.
171
-
It can be used for adding claims, headers, etc to the response.
171
+
It can be used for adding claims, headers, etc to the response.
172
172
173
173
-##### OnAuthenticationFailed
174
174
A delegate assigned to this property will be invoked when the authentication fails.
175
175
176
176
-##### OnHandleChallenge
177
177
A delegate assigned to this property will be invoked before a challenge is sent back to the caller when handling unauthorized response.
178
178
Only use this if you know what you are doing and if you want to use custom implementation. Set the delegate to deal with 401 challenge concerns, if an authentication scheme in question deals an authentication interaction as part of it's request flow. (like adding a response header, or changing the 401 result to 302 of a login page or external sign-in location.)
179
-
Call context.Handled() at the end so that any default logic for this challenge will be skipped.
179
+
Call context.Handled() at the end so that any default logic for this challenge will be skipped.
180
180
181
181
-##### OnHandleForbidden
182
182
A delegate assigned to this property will be invoked if Authorization fails and results in a Forbidden response.
@@ -193,14 +193,14 @@ However, if you want all the requests to challenge authentication by default, de
0 commit comments