73 references to AddAuthentication
BasicWebSite (2)
StartupWithCustomInvalidModelStateFactory.cs (1)
14services.AddAuthentication()
StartupWithoutEndpointRouting.cs (1)
22services.AddAuthentication()
DynamicSchemes (1)
Startup.cs (1)
29services.AddAuthentication()
Identity.ExternalClaims (1)
Startup.cs (1)
43services.AddAuthentication().AddGoogle(o =>
Microsoft.AspNetCore.Authentication (1)
AuthenticationServiceCollectionExtensions.cs (1)
56var builder = services.AddAuthentication();
Microsoft.AspNetCore.Authentication.Negotiate.Test (4)
EventTests.cs (1)
414.AddAuthentication()
NegotiateHandlerTests.cs (2)
258.AddAuthentication() 385.AddAuthentication()
ServerDeferralTests.cs (1)
47services.AddAuthentication()
Microsoft.AspNetCore.Authentication.Test (52)
AuthenticationMiddlewareTests.cs (3)
166builder.Services.AddAuthentication().AddJwtBearer(); 188builder.Services.AddAuthentication().AddJwtBearer(); 212serviceCollection.AddAuthentication();
BearerTokenTests.cs (1)
17services.AddAuthentication().AddBearerToken();
CertificateTests.cs (3)
30services.AddAuthentication().AddCertificate(); 848authBuilder = services.AddAuthentication().AddCertificate(options => 869authBuilder = services.AddAuthentication().AddCertificate(options =>
CookieTests.cs (16)
129using var host = await CreateHostWithServices(s => s.AddAuthentication().AddCookie(o => 288services.AddAuthentication().AddCookie(o => 1245.ConfigureServices(s => s.AddAuthentication().AddCookie(o => o.LoginPath = new PathString("/page")))) 1280.ConfigureServices(services => services.AddAuthentication().AddCookie())) 1303services.AddAuthentication().AddCookie(); 1331services.AddAuthentication().AddCookie("Cookie1"); 1358.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LoginPath = new PathString("/login")))) 1380.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LoginPath = new PathString("/login")))) 1406.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LogoutPath = new PathString("/logout")))) 1428.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LogoutPath = new PathString("/logout")))) 1454.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.AccessDeniedPath = new PathString("/denied")))) 1479.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LoginPath = new PathString("/page")))) 1622.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.AccessDeniedPath = new PathString("/denied")))) 1649.ConfigureServices(services => services.AddAuthentication().AddCookie(o => 1673.ConfigureServices(services => services.AddAuthentication().AddCookie("Cookies", o => 1692.ConfigureServices(services => services.AddAuthentication().AddCookie(o =>
DynamicSchemeTests.cs (1)
169services.AddAuthentication();
FacebookTests.cs (4)
50services => services.AddAuthentication().AddFacebook(o => o.SignInScheme = "PLACEHOLDER"), 66services => services.AddAuthentication().AddFacebook(o => o.AppId = "Whatever"), 219services.AddAuthentication() 252services.AddAuthentication()
JwtBearerTests.cs (1)
900services.AddAuthentication()
JwtBearerTests_Handler.cs (1)
853services.AddAuthentication()
OAuthTests.cs (11)
38services => services.AddAuthentication().AddOAuth("weeblie", o => 54services => services.AddAuthentication().AddOAuth("weeblie", o => 70services => services.AddAuthentication().AddOAuth("weeblie", o => 86services => services.AddAuthentication().AddOAuth("weeblie", o => 102services => services.AddAuthentication().AddOAuth("weeblie", o => 294s => s.AddAuthentication().AddOAuth( 321s => s.AddAuthentication().AddOAuth( 356s => s.AddAuthentication().AddOAuth( 392s => s.AddAuthentication().AddOAuth( 430s => s.AddAuthentication().AddOAuth( 474s => s.AddAuthentication().AddOAuth(
OpenIdConnect\OpenIdConnectConfigurationTests.cs (2)
451services.AddAuthentication() 561services.AddAuthentication()
OpenIdConnect\OpenIdConnectTests.cs (5)
438var builder = services.AddAuthentication(); 471var builder = services.AddAuthentication(); 506var builder = services.AddAuthentication(); 529var builder = services.AddAuthentication(); 554var builder = services.AddAuthentication();
RemoteAuthenticationTests.cs (1)
21var builder = s.AddAuthentication();
SharedAuthenticationTests.cs (1)
539var builder = services.AddAuthentication();
WsFederation\WsFederationTest.cs (1)
31services.AddAuthentication().AddWsFederation();
WsFederation\WsFederationTest_Handler.cs (1)
29services.AddAuthentication().AddWsFederation();
Microsoft.AspNetCore.CookiePolicy.Test (2)
CookiePolicyTests.cs (2)
383services.AddAuthentication().AddCookie(o => 434services.AddAuthentication().AddCookie(o =>
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionDispatcherTests.cs (1)
3455services.AddAuthentication();
Microsoft.AspNetCore.Identity.FunctionalTests (5)
Infrastructure\FunctionalTestsServiceCollectionExtensions.cs (1)
27services.AddAuthentication()
MapIdentityApiTests.cs (4)
171services.AddAuthentication().AddBearerToken(IdentityConstants.BearerScheme, options => 246services.AddAuthentication().AddBearerToken(IdentityConstants.BearerScheme, options => 331services.AddAuthentication().AddBearerToken(IdentityConstants.BearerScheme, options => 1334.AddAuthentication()
Microsoft.AspNetCore.Identity.Test (1)
IdentityOptionsTest.cs (1)
75services.AddAuthentication().AddIdentityCookies(o =>
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
VersionStartup.cs (1)
26services.AddAuthentication();
MinimalJwtBearerSample (1)
Program.cs (1)
8builder.Services.AddAuthentication()
Sample (1)
Program.cs (1)
13builder.Services.AddAuthentication().AddJwtBearer();