48 references to AddAuthentication
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
673.AddAuthentication(o => o.DefaultScheme = ConfigureDefaultAuthScheme(dashboardOptions))
CookieSessionSample (1)
Startup.cs (1)
15services.AddAuthentication(options =>
IdentitySample.Mvc (1)
Startup.cs (1)
43services.AddAuthentication(o =>
Microsoft.AspNetCore.Authentication (1)
AuthenticationServiceCollectionExtensions.cs (1)
43=> services.AddAuthentication(o => o.DefaultScheme = defaultScheme);
Microsoft.AspNetCore.Authentication.Test (38)
AuthenticationMiddlewareTests.cs (1)
31.ConfigureServices(services => services.AddAuthentication(o =>
FacebookTests.cs (1)
281services.AddAuthentication(options =>
JwtBearerTests_Handler.cs (1)
1004var builder = services.AddAuthentication(o =>
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)
49services.AddAuthentication(sharedOptions => 209services.AddAuthentication(sharedOptions => 282services.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 =>