18 references to AddAuthenticationSchemes
JwtSample (1)
Startup.cs (1)
24policy.AddAuthenticationSchemes(JwtBearerDefaults.AuthenticationScheme);
Microsoft.AspNetCore.Authorization (1)
AuthorizationPolicyBuilder.cs (1)
26AddAuthenticationSchemes(authenticationSchemes);
Microsoft.AspNetCore.Authorization.Test (10)
AuthorizationMiddlewareResultHandlerTests.cs (2)
67.AddAuthenticationSchemes(firstScheme, secondScheme, thirdScheme) 106.AddAuthenticationSchemes(firstScheme, secondScheme, thirdScheme)
AuthorizationMiddlewareTests.cs (5)
172var policy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().AddAuthenticationSchemes("schema1", "schema2").Build(); 727var policy = new AuthorizationPolicyBuilder().RequireRole("Wut").AddAuthenticationSchemes("Basic", "Bearer").Build(); 795var policy = new AuthorizationPolicyBuilder().RequireRole("Wut").AddAuthenticationSchemes("NotImplemented").Build(); 818var policy = new AuthorizationPolicyBuilder().RequireRole("Wut").AddAuthenticationSchemes("Basic", "Bearer").Build(); 917var policy = new AuthorizationPolicyBuilder().RequireClaim("Permission", "CanViewPage").AddAuthenticationSchemes("Bearer").Build();
DefaultAuthorizationServiceTests.cs (1)
58policy.AddAuthenticationSchemes("Basic");
PolicyEvaluatorTests.cs (2)
38var policy = new AuthorizationPolicyBuilder().AddAuthenticationSchemes("A", "B", "C").RequireAssertion(_ => true).Build(); 57var policy = new AuthorizationPolicyBuilder().AddAuthenticationSchemes("A").RequireAssertion(_ => true).Build();
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Startup.cs (2)
40policy.AddAuthenticationSchemes(JwtBearerDefaults.AuthenticationScheme); 45policy.AddAuthenticationSchemes(NegotiateDefaults.AuthenticationScheme);
Microsoft.AspNetCore.SignalR.Tests (3)
HubConnectionHandlerTests.cs (3)
2200policy.AddAuthenticationSchemes("Default"); 2236policy.AddAuthenticationSchemes("Default"); 2336policy.AddAuthenticationSchemes("Default");
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
51policy.AddAuthenticationSchemes(JwtBearerDefaults.AuthenticationScheme);