59 references to AddAuthentication
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
669.AddAuthentication(o => o.DefaultScheme = ConfigureDefaultAuthScheme(dashboardOptions))
CookieSessionSample (1)
Startup.cs (1)
15services.AddAuthentication(options =>
IdentitySample.Mvc (1)
Startup.cs (1)
43services.AddAuthentication(o =>
IdentitySample.PasskeyConformance (1)
Program.cs (1)
15builder.Services.AddAuthentication(options =>
IdentitySample.PasskeyUI (1)
Program.cs (1)
15builder.Services.AddAuthentication(options =>
Microsoft.AspNetCore.Authentication (1)
AuthenticationServiceCollectionExtensions.cs (1)
43=> services.AddAuthentication(o => o.DefaultScheme = defaultScheme);
Microsoft.AspNetCore.Authentication.Test (47)
AuthenticationMiddlewareTests.cs (1)
31.ConfigureServices(services => services.AddAuthentication(o =>
FacebookTests.cs (4)
129services.AddAuthentication(o => o.DisableAutoDefaultScheme = true).AddFacebook(o => 159services.AddAuthentication(o => o.DisableAutoDefaultScheme = true).AddFacebook(o => 191services.AddAuthentication(o => o.DisableAutoDefaultScheme = true).AddFacebook(o => 288services.AddAuthentication(options =>
JwtBearerTests_Handler.cs (1)
1011var builder = services.AddAuthentication(o =>
OAuthTests.cs (6)
125s => s.AddAuthentication(o => o.DisableAutoDefaultScheme = true).AddOAuth( 152s => s.AddAuthentication(o => o.DisableAutoDefaultScheme = true).AddOAuth( 180s => s.AddAuthentication(o => o.DisableAutoDefaultScheme = true).AddOAuth( 207s => s.AddAuthentication(o => o.DisableAutoDefaultScheme = true).AddOAuth( 233s => s.AddAuthentication(o => o.DisableAutoDefaultScheme = true).AddOAuth( 262s => s.AddAuthentication(o => o.DisableAutoDefaultScheme = true).AddOAuth(
OpenIdConnect\OpenIdConnectConfigurationTests.cs (9)
32services.AddAuthentication(o => 75services.AddAuthentication(o => 104services.AddAuthentication(o => 144services.AddAuthentication(o => 184services.AddAuthentication(o => 224services.AddAuthentication(o => 264services.AddAuthentication(o => 319services.AddAuthentication(o => 374services.AddAuthentication(o =>
OpenIdConnect\OpenIdConnectEventTests.cs (1)
1271services.AddAuthentication(auth =>
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (1)
1271services.AddAuthentication(auth =>
PolicyTests.cs (7)
22services.AddLogging().AddAuthentication(o => 58services.AddAuthentication(o => 114services.AddAuthentication(o => 170services.AddAuthentication(o => 231services.AddAuthentication(o => 283services.AddAuthentication(o => 341services.AddAuthentication(o =>
RemoteAuthenticationTests.cs (1)
92var builder = services.AddAuthentication(o => o.DefaultSignInScheme = DefaultScheme);
SharedAuthenticationTests.cs (10)
31var builder = services.AddAuthentication(o => 88var builder = services.AddAuthentication(o => 130var builder = services.AddAuthentication(o => 170var builder = services.AddAuthentication(o => 220var builder = services.AddSingleton<IClaimsTransformation>(transform).AddAuthentication(o => 249var builder = services.AddAuthentication(o => 288var builder = services.AddAuthentication(o => 327var builder = services.AddAuthentication(o => 396var builder = services.AddAuthentication(o => 465var builder = services.AddAuthentication(o =>
WsFederation\WsFederationTest.cs (3)
56services.AddAuthentication(sharedOptions => 216services.AddAuthentication(sharedOptions => 289services.AddAuthentication(sharedOptions =>
WsFederation\WsFederationTest_Handler.cs (3)
47services.AddAuthentication(sharedOptions => 207services.AddAuthentication(sharedOptions => 280services.AddAuthentication(sharedOptions =>
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionDispatcherTests.cs (1)
3199services.AddAuthentication(options =>
Microsoft.AspNetCore.Identity (1)
IdentityServiceCollectionExtensions.cs (1)
53services.AddAuthentication(options =>
Microsoft.AspNetCore.Identity.UI (1)
IdentityServiceCollectionUIExtensions.cs (1)
41services.AddAuthentication(o =>
Microsoft.AspNetCore.SignalR.Tests (1)
Startup.cs (1)
35services.AddAuthentication(options =>
OpenIdConnectSample (1)
Startup.cs (1)
93services.AddAuthentication(sharedOptions =>
WsFedSample (1)
Startup.cs (1)
23services.AddAuthentication(sharedOptions =>