16 writes to HandlerType
Microsoft.AspNetCore.Authentication (1)
AuthenticationBuilder.cs (1)
38
scheme.
HandlerType
= typeof(THandler);
Microsoft.AspNetCore.Authentication.Abstractions (1)
AuthenticationOptions.cs (1)
59
b.
HandlerType
= typeof(THandler);
Microsoft.AspNetCore.Authentication.Core.Test (2)
TokenExtensionTests.cs (2)
130
o.AddScheme("simple", s => s.
HandlerType
= typeof(SimpleAuth));
144
.AddAuthenticationCore(o => o.AddScheme("simple", s => s.
HandlerType
= typeof(SimpleAuth)));
Microsoft.AspNetCore.Authentication.Test (4)
AuthenticationMiddlewareTests.cs (4)
35
s.
HandlerType
= typeof(SkipHandler);
40
s.
HandlerType
= typeof(ThrowsHandler);
44
s.
HandlerType
= typeof(SixOhSevenHandler);
49
s.
HandlerType
= typeof(ThreeOhFiveHandler);
Microsoft.AspNetCore.Identity.Test (8)
SecurityStampValidatorTest.cs (8)
64
var context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) {
HandlerType
= typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
86
var context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) {
HandlerType
= typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
144
var context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) {
HandlerType
= typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
185
var context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) {
HandlerType
= typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
226
var context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) {
HandlerType
= typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
263
var context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) {
HandlerType
= typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
305
var context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) {
HandlerType
= typeof(NoopHandler) }.Build(),
350
var context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) {
HandlerType
= typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
3 references to HandlerType
Microsoft.AspNetCore.Authentication.Abstractions (3)
AuthenticationSchemeBuilder.cs (3)
44
if (
HandlerType
is null)
46
throw new InvalidOperationException($"{nameof(
HandlerType
)} must be configured to build an {nameof(AuthenticationScheme)}.");
49
return new AuthenticationScheme(Name, DisplayName,
HandlerType
);