24 references to AuthenticationScheme
Aspire.Dashboard.Tests (1)
OtlpApiKeyAuthenticationHandlerTests.cs (1)
100await handler.InitializeAsync(new AuthenticationScheme("Test", "Test", handler.GetType()), httpContext);
DynamicSchemes (1)
Controllers\AuthController.cs (1)
35_schemeProvider.AddScheme(new AuthenticationScheme(scheme, scheme, typeof(SimpleAuthHandler)));
Microsoft.AspNetCore.Authentication.Abstractions (1)
AuthenticationSchemeBuilder.cs (1)
49return new AuthenticationScheme(Name, DisplayName, HandlerType);
Microsoft.AspNetCore.Authentication.Core.Test (9)
AuthenticationSchemeProviderTests.cs (9)
166Assert.True(o.TryAddScheme(new AuthenticationScheme("signin", "whatever", typeof(Handler)))); 167Assert.True(o.TryAddScheme(new AuthenticationScheme("signin2", "whatever", typeof(Handler)))); 168Assert.False(o.TryAddScheme(new AuthenticationScheme("signin", "whatever", typeof(Handler)))); 169Assert.True(o.TryAddScheme(new AuthenticationScheme("signin3", "whatever", typeof(Handler)))); 170Assert.False(o.TryAddScheme(new AuthenticationScheme("signin2", "whatever", typeof(Handler)))); 172Assert.True(o.TryAddScheme(new AuthenticationScheme("signin2", "whatever", typeof(Handler)))); 203var scheme1 = new AuthenticationScheme("signin1", "whatever", typeof(Handler)); 204var scheme2 = new AuthenticationScheme("signin2", "whatever", typeof(Handler)); 205var scheme3 = new AuthenticationScheme("signin3", "whatever", typeof(Handler));
Microsoft.AspNetCore.Authentication.Test (5)
AuthenticationMiddlewareTests.cs (4)
68.Returns(Task.FromResult(new AuthenticationScheme("custom", "custom", typeof(JwtBearerHandler)))); 91.Returns(Task.FromResult(new AuthenticationScheme("custom", "custom", typeof(JwtBearerHandler)))); 111.Returns(Task.FromResult(new AuthenticationScheme("custom", "custom", typeof(JwtBearerHandler)))); 137.Returns(Task.FromResult(new AuthenticationScheme("custom", "custom", typeof(JwtBearerHandler))));
DynamicSchemeTests.cs (1)
145var scheme = new AuthenticationScheme(name, name, typeof(TestHandler));
Microsoft.AspNetCore.Identity.Test (4)
SignInManagerTest.cs (4)
1049new AuthenticationScheme("blah", "Blah blah", handler.Object.GetType()) 1080new AuthenticationScheme("blah", "Blah blah", handler.Object.GetType()) 1112new AuthenticationScheme("blah", "Blah blah", handler.Object.GetType()) 1350private static AuthenticationScheme CreateCookieScheme(string name) => new(IdentityConstants.ApplicationScheme, displayName: null, typeof(CookieAuthenticationHandler));
Microsoft.AspNetCore.Server.HttpSys (1)
MessagePump.cs (1)
40authentication.AddScheme(new AuthenticationScheme(HttpSysDefaults.AuthenticationScheme, displayName: _options.Authentication.AuthenticationDisplayName, handlerType: typeof(AuthenticationHandler)));
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpServer.cs (1)
77authentication.AddScheme(new AuthenticationScheme(IISServerDefaults.AuthenticationScheme, _options.AuthenticationDisplayName, typeof(IISServerAuthenticationHandlerInternal)));
Microsoft.AspNetCore.Server.IISIntegration (1)
IISMiddleware.cs (1)
87authentication.AddScheme(new AuthenticationScheme(IISDefaults.AuthenticationScheme, _options.AuthenticationDisplayName, typeof(AuthenticationHandler)));