52 references to AddAuthentication
Certificate.Optional.Sample (1)
Startup.cs (1)
15services.AddAuthentication(CertificateAuthenticationDefaults.AuthenticationScheme)
Certificate.Sample (1)
Startup.cs (1)
15services.AddAuthentication(CertificateAuthenticationDefaults.AuthenticationScheme)
ClaimsTransformation (1)
Startup.cs (1)
33services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme) // Sets the default scheme to cookies
CookiePolicySample (1)
Startup.cs (1)
15services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
Cookies (1)
Startup.cs (1)
35services.AddAuthentication(CookieScheme) // Sets the default scheme to cookies
CookieSample (1)
Program.cs (1)
12.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
CustomAuthorizationFailureResponse (1)
Startup.cs (1)
33.AddAuthentication(SampleAuthenticationSchemes.CustomScheme)
CustomPolicyProvider (1)
Startup.cs (1)
29services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
JwtBearerSample (1)
Startup.cs (1)
28services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
JwtSample (1)
Startup.cs (1)
29services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
Keycloak.Web (1)
Program.cs (1)
32builder.Services.AddAuthentication(oidcScheme)
Microsoft.AspNetCore.Authentication.Test (13)
CookieTests.cs (4)
191s.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(o => 226s.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(o => 256using var host = await CreateHostWithServices(s => s.AddAuthentication(schemeName).AddCookie(schemeName, o => 1796s.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(o =>
FacebookTests.cs (3)
87services.AddAuthentication("External") 321services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme) 381services.AddAuthentication(TestExtensions.CookieAuthenticationScheme)
GoogleTests.cs (1)
1229services.AddAuthentication(TestExtensions.CookieAuthenticationScheme)
JwtBearerTests.cs (1)
1240.ConfigureServices(services => services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme).AddJwtBearer(options)))
JwtBearerTests_Handler.cs (1)
1299.ConfigureServices(services => services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme).AddJwtBearer(options)))
MicrosoftAccountTests.cs (1)
416services.AddAuthentication(TestExtensions.CookieAuthenticationScheme)
OpenIdConnect\TestServerBuilder.cs (1)
113services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
TwitterTests.cs (1)
582services.AddAuthentication(TestExtensions.CookieAuthenticationScheme)
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionDispatcherTests.cs (2)
3296services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme) 3363services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
Microsoft.AspNetCore.Identity (1)
IdentityServiceCollectionExtensions.cs (1)
141.AddAuthentication(IdentityConstants.BearerAndApplicationScheme)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
SqlStoreTestBase.cs (1)
45services.AddAuthentication(IdentityConstants.ApplicationScheme).AddIdentityCookies();
Microsoft.AspNetCore.Identity.InMemory.Test (1)
FunctionalTest.cs (1)
385services.AddAuthentication(IdentityConstants.ApplicationScheme).AddIdentityCookies();
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Startup.cs (2)
50services.AddAuthentication(NegotiateDefaults.AuthenticationScheme).AddNegotiate(); 51services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (2)
2440builder.Services.AddAuthentication("testSchemeName") 2480builder.Services.AddAuthentication("testSchemeName")
MinimalOpenIdConnectSample (1)
Program.cs (1)
8.AddAuthentication("OpenIdConnect")
Negotiate.Server (1)
Startup.cs (1)
25services.AddAuthentication(NegotiateDefaults.AuthenticationScheme)
NegotiateAuthSample (1)
Startup.cs (1)
16services.AddAuthentication(NegotiateDefaults.AuthenticationScheme)
PathSchemeSelection (1)
Startup.cs (1)
26services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
RazorPagesWebSite (4)
Startup.cs (1)
12services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
StartupWithBasePath.cs (1)
20services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
StartupWithClientValidationDisabled.cs (1)
13services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
StartupWithoutEndpointRouting.cs (1)
14services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(options => options.LoginPath = "/Login");
SecurityWebSite (7)
Startup.cs (1)
17services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(options =>
StartupWithGlobalAuthFilter.cs (1)
14.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
StartupWithGlobalAuthFilterWithoutEndpointRouting.cs (1)
14.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
StartupWithGlobalDenyAnonymousFilter.cs (1)
15.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
StartupWithGlobalDenyAnonymousFilterWithUseMvc.cs (1)
15.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
StartupWithRequireAuth.cs (1)
17services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(options =>
StartupWithUseMvc.cs (1)
17services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(options =>
ServerComparison.TestSites (1)
StartupNtlmAuthentication.cs (1)
23services.AddAuthentication(NegotiateDefaults.AuthenticationScheme)
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
56services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
SocialSample (1)
Startup.cs (1)
41services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
StaticFilesAuth (1)
Startup.cs (1)
25services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)