63 references to OpenIdConnectDefaults
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 (12)
OpenIdConnectExtensions.cs (5)
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);
55
=> builder.AddOpenIdConnect(authenticationScheme,
OpenIdConnectDefaults
.DisplayName, configureOptions);
OpenIdConnectHandler.cs (5)
265
properties.Items[
OpenIdConnectDefaults
.UserstatePropertiesKey] = message.State;
474
properties.Items[
OpenIdConnectDefaults
.UserstatePropertiesKey] = message.State;
478
properties.Items.Add(
OpenIdConnectDefaults
.RedirectUriForCodePropertiesKey, message.RedirectUri);
962
properties.Items.TryGetValue(
OpenIdConnectDefaults
.UserstatePropertiesKey, out var userstate);
1269
RedirectUri = properties.Items[
OpenIdConnectDefaults
.RedirectUriForCodePropertiesKey]
OpenIdConnectOptions.cs (2)
80
Name =
OpenIdConnectDefaults
.CookieNoncePrefix,
318
/// The value of <see cref="CookieBuilder.Name"/> is treated as the prefix to the cookie name, and defaults to <see cref="
OpenIdConnectDefaults
.CookieNoncePrefix"/>.
Microsoft.AspNetCore.Authentication.Test (37)
OpenIdConnect\OpenIdConnectChallengeTests.cs (5)
191
properties.Items.Add(
OpenIdConnectDefaults
.UserstatePropertiesKey, userState);
204
Assert.Equal(userState ?? string.Empty, actualProperties.Items[
OpenIdConnectDefaults
.UserstatePropertiesKey]);
241
Assert.Equal(userState, actualProperties.Items[
OpenIdConnectDefaults
.UserstatePropertiesKey]);
245
Assert.False(actualProperties.Items.ContainsKey(
OpenIdConnectDefaults
.UserstatePropertiesKey));
440
var nonceCookie = challengeCookies.Where(cookie => cookie.Name.StartsWith(
OpenIdConnectDefaults
.CookieNoncePrefix, StringComparison.Ordinal)).Single();
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 (4)
963
return context.SignOutAsync(
OpenIdConnectDefaults
.AuthenticationScheme);
990
return context.SignOutAsync(
OpenIdConnectDefaults
.AuthenticationScheme);
1274
auth.DefaultChallengeScheme =
OpenIdConnectDefaults
.AuthenticationScheme;
1337
{
OpenIdConnectDefaults
.RedirectUriForCodePropertiesKey, "redirect_uri" },
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (4)
963
return context.SignOutAsync(
OpenIdConnectDefaults
.AuthenticationScheme);
990
return context.SignOutAsync(
OpenIdConnectDefaults
.AuthenticationScheme);
1274
auth.DefaultChallengeScheme =
OpenIdConnectDefaults
.AuthenticationScheme;
1335
{
OpenIdConnectDefaults
.RedirectUriForCodePropertiesKey, "redirect_uri" },
OpenIdConnect\OpenIdConnectTests.cs (8)
80
var nonce = Assert.Single(setCookie.Value, v => v.StartsWith(
OpenIdConnectDefaults
.CookieNoncePrefix, StringComparison.Ordinal));
107
var nonce = Assert.Single(setCookie.Value, v => v.StartsWith(
OpenIdConnectDefaults
.CookieNoncePrefix, StringComparison.Ordinal));
443
var options = sp.GetRequiredService<IOptionsMonitor<OpenIdConnectOptions>>().Get(
OpenIdConnectDefaults
.AuthenticationScheme);
476
var options = sp.GetRequiredService<IOptionsMonitor<OpenIdConnectOptions>>().Get(
OpenIdConnectDefaults
.AuthenticationScheme);
484
Assert.Equal(
OpenIdConnectDefaults
.CookieNoncePrefix, options.NonceCookie.Name);
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()