45 references to AuthenticationScheme
Aspire.Dashboard (2)
DashboardEndpointsBuilder.cs (1)
39endpoints.MapPost("/authentication/logout", () => TypedResults.SignOut(authenticationSchemes: [CookieAuthenticationDefaults.AuthenticationScheme, OpenIdConnectDefaults.AuthenticationScheme]));
DashboardWebApplication.cs (1)
705o.ForwardChallenge = OpenIdConnectDefaults.AuthenticationScheme;
Aspire.Keycloak.Authentication (2)
AspireKeycloakExtensions.cs (2)
109=> builder.AddKeycloakOpenIdConnect(serviceName, realm, OpenIdConnectDefaults.AuthenticationScheme, null); 137=> builder.AddKeycloakOpenIdConnect(serviceName, realm, OpenIdConnectDefaults.AuthenticationScheme, configureOptions);
Aspire.Keycloak.Authentication.Tests (4)
AspireKeycloakExtensionTests.cs (4)
112.Get(OpenIdConnectDefaults.AuthenticationScheme)); 123var scheme = OpenIdConnectDefaults.AuthenticationScheme; 153.Get(OpenIdConnectDefaults.AuthenticationScheme); 164var scheme = OpenIdConnectDefaults.AuthenticationScheme;
Keycloak.Web (2)
LoginLogoutEndpointRouteBuilderExtensions.cs (1)
17[CookieAuthenticationDefaults.AuthenticationScheme, OpenIdConnectDefaults.AuthenticationScheme]));
Program.cs (1)
30var oidcScheme = OpenIdConnectDefaults.AuthenticationScheme;
Microsoft.AspNetCore.Authentication.OpenIdConnect (4)
OpenIdConnectExtensions.cs (4)
18/// The default scheme is specified by <see cref="OpenIdConnectDefaults.AuthenticationScheme"/>. 27=> builder.AddOpenIdConnect(OpenIdConnectDefaults.AuthenticationScheme, _ => { }); 31/// The default scheme is specified by <see cref="OpenIdConnectDefaults.AuthenticationScheme"/>. 41=> builder.AddOpenIdConnect(OpenIdConnectDefaults.AuthenticationScheme, configureOptions);
Microsoft.AspNetCore.Authentication.Test (27)
OpenIdConnect\OpenIdConnectConfigurationTests.cs (11)
34o.DefaultScheme = OpenIdConnectDefaults.AuthenticationScheme; 77o.DefaultScheme = OpenIdConnectDefaults.AuthenticationScheme; 106o.DefaultScheme = OpenIdConnectDefaults.AuthenticationScheme; 146o.DefaultScheme = OpenIdConnectDefaults.AuthenticationScheme; 186o.DefaultScheme = OpenIdConnectDefaults.AuthenticationScheme; 226o.DefaultScheme = OpenIdConnectDefaults.AuthenticationScheme; 266o.DefaultScheme = OpenIdConnectDefaults.AuthenticationScheme; 321o.DefaultScheme = OpenIdConnectDefaults.AuthenticationScheme; 376o.DefaultScheme = OpenIdConnectDefaults.AuthenticationScheme; 443var handler = await resolver.GetHandlerAsync(context, OpenIdConnectDefaults.AuthenticationScheme) as OpenIdConnectHandler; 475o.SignInScheme = OpenIdConnectDefaults.AuthenticationScheme;
OpenIdConnect\OpenIdConnectEventTests.cs (3)
963return context.SignOutAsync(OpenIdConnectDefaults.AuthenticationScheme); 990return context.SignOutAsync(OpenIdConnectDefaults.AuthenticationScheme); 1274auth.DefaultChallengeScheme = OpenIdConnectDefaults.AuthenticationScheme;
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (3)
963return context.SignOutAsync(OpenIdConnectDefaults.AuthenticationScheme); 990return context.SignOutAsync(OpenIdConnectDefaults.AuthenticationScheme); 1274auth.DefaultChallengeScheme = OpenIdConnectDefaults.AuthenticationScheme;
OpenIdConnect\OpenIdConnectTests.cs (5)
443var options = sp.GetRequiredService<IOptionsMonitor<OpenIdConnectOptions>>().Get(OpenIdConnectDefaults.AuthenticationScheme); 476var options = sp.GetRequiredService<IOptionsMonitor<OpenIdConnectOptions>>().Get(OpenIdConnectDefaults.AuthenticationScheme); 511sp.GetRequiredService<IOptionsMonitor<OpenIdConnectOptions>>().Get(OpenIdConnectDefaults.AuthenticationScheme)); 533var options = sp.GetRequiredService<IOptionsMonitor<OpenIdConnectOptions>>().Get(OpenIdConnectDefaults.AuthenticationScheme); 561var options = sp.GetRequiredService<IOptionsMonitor<OpenIdConnectOptions>>().Get(OpenIdConnectDefaults.AuthenticationScheme);
OpenIdConnect\TestServerBuilder.cs (5)
77await context.ChallengeAsync(OpenIdConnectDefaults.AuthenticationScheme); 81await context.ChallengeAsync(OpenIdConnectDefaults.AuthenticationScheme, properties); 89await context.SignInAsync(OpenIdConnectDefaults.AuthenticationScheme, new ClaimsPrincipal()); 93await context.SignOutAsync(OpenIdConnectDefaults.AuthenticationScheme); 98OpenIdConnectDefaults.AuthenticationScheme,
OpenIdConnectSample (4)
Startup.cs (4)
96sharedOptions.DefaultChallengeScheme = OpenIdConnectDefaults.AuthenticationScheme; 176await context.SignOutAsync(OpenIdConnectDefaults.AuthenticationScheme, new AuthenticationProperties() 250var options = optionsMonitor.Get(OpenIdConnectDefaults.AuthenticationScheme); 298await context.ChallengeAsync(OpenIdConnectDefaults.AuthenticationScheme, new OpenIdConnectChallengeProperties()