45 references to AuthenticationScheme
Aspire.Dashboard (2)
DashboardEndpointsBuilder.cs (1)
39
endpoints.MapPost("/authentication/logout", () => TypedResults.SignOut(authenticationSchemes: [CookieAuthenticationDefaults.AuthenticationScheme, OpenIdConnectDefaults.
AuthenticationScheme
]));
DashboardWebApplication.cs (1)
705
o.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
));
123
var scheme = OpenIdConnectDefaults.
AuthenticationScheme
;
153
.Get(OpenIdConnectDefaults.
AuthenticationScheme
);
164
var scheme = OpenIdConnectDefaults.
AuthenticationScheme
;
Keycloak.Web (2)
LoginLogoutEndpointRouteBuilderExtensions.cs (1)
17
[CookieAuthenticationDefaults.AuthenticationScheme, OpenIdConnectDefaults.
AuthenticationScheme
]));
Program.cs (1)
30
var 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)
34
o.DefaultScheme = OpenIdConnectDefaults.
AuthenticationScheme
;
77
o.DefaultScheme = OpenIdConnectDefaults.
AuthenticationScheme
;
106
o.DefaultScheme = OpenIdConnectDefaults.
AuthenticationScheme
;
146
o.DefaultScheme = OpenIdConnectDefaults.
AuthenticationScheme
;
186
o.DefaultScheme = OpenIdConnectDefaults.
AuthenticationScheme
;
226
o.DefaultScheme = OpenIdConnectDefaults.
AuthenticationScheme
;
266
o.DefaultScheme = OpenIdConnectDefaults.
AuthenticationScheme
;
321
o.DefaultScheme = OpenIdConnectDefaults.
AuthenticationScheme
;
376
o.DefaultScheme = OpenIdConnectDefaults.
AuthenticationScheme
;
443
var handler = await resolver.GetHandlerAsync(context, OpenIdConnectDefaults.
AuthenticationScheme
) as OpenIdConnectHandler;
475
o.SignInScheme = OpenIdConnectDefaults.
AuthenticationScheme
;
OpenIdConnect\OpenIdConnectEventTests.cs (3)
963
return context.SignOutAsync(OpenIdConnectDefaults.
AuthenticationScheme
);
990
return context.SignOutAsync(OpenIdConnectDefaults.
AuthenticationScheme
);
1274
auth.DefaultChallengeScheme = OpenIdConnectDefaults.
AuthenticationScheme
;
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (3)
963
return context.SignOutAsync(OpenIdConnectDefaults.
AuthenticationScheme
);
990
return context.SignOutAsync(OpenIdConnectDefaults.
AuthenticationScheme
);
1274
auth.DefaultChallengeScheme = OpenIdConnectDefaults.
AuthenticationScheme
;
OpenIdConnect\OpenIdConnectTests.cs (5)
443
var options = sp.GetRequiredService<IOptionsMonitor<OpenIdConnectOptions>>().Get(OpenIdConnectDefaults.
AuthenticationScheme
);
476
var options = sp.GetRequiredService<IOptionsMonitor<OpenIdConnectOptions>>().Get(OpenIdConnectDefaults.
AuthenticationScheme
);
511
sp.GetRequiredService<IOptionsMonitor<OpenIdConnectOptions>>().Get(OpenIdConnectDefaults.
AuthenticationScheme
));
533
var options = sp.GetRequiredService<IOptionsMonitor<OpenIdConnectOptions>>().Get(OpenIdConnectDefaults.
AuthenticationScheme
);
561
var options = sp.GetRequiredService<IOptionsMonitor<OpenIdConnectOptions>>().Get(OpenIdConnectDefaults.
AuthenticationScheme
);
OpenIdConnect\TestServerBuilder.cs (5)
77
await context.ChallengeAsync(OpenIdConnectDefaults.
AuthenticationScheme
);
81
await context.ChallengeAsync(OpenIdConnectDefaults.
AuthenticationScheme
, properties);
89
await context.SignInAsync(OpenIdConnectDefaults.
AuthenticationScheme
, new ClaimsPrincipal());
93
await context.SignOutAsync(OpenIdConnectDefaults.
AuthenticationScheme
);
98
OpenIdConnectDefaults.
AuthenticationScheme
,
OpenIdConnectSample (4)
Startup.cs (4)
96
sharedOptions.DefaultChallengeScheme = OpenIdConnectDefaults.
AuthenticationScheme
;
176
await context.SignOutAsync(OpenIdConnectDefaults.
AuthenticationScheme
, new AuthenticationProperties()
250
var options = optionsMonitor.Get(OpenIdConnectDefaults.
AuthenticationScheme
);
298
await context.ChallengeAsync(OpenIdConnectDefaults.
AuthenticationScheme
, new OpenIdConnectChallengeProperties()