63 references to OpenIdConnectDefaults
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
423_app.MapPost("/authentication/logout", () => TypedResults.SignOut(authenticationSchemes: [CookieAuthenticationDefaults.AuthenticationScheme, OpenIdConnectDefaults.AuthenticationScheme])); 723o.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 (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)
265properties.Items[OpenIdConnectDefaults.UserstatePropertiesKey] = message.State; 474properties.Items[OpenIdConnectDefaults.UserstatePropertiesKey] = message.State; 478properties.Items.Add(OpenIdConnectDefaults.RedirectUriForCodePropertiesKey, message.RedirectUri); 962properties.Items.TryGetValue(OpenIdConnectDefaults.UserstatePropertiesKey, out var userstate); 1269RedirectUri = properties.Items[OpenIdConnectDefaults.RedirectUriForCodePropertiesKey]
OpenIdConnectOptions.cs (2)
80Name = 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)
191properties.Items.Add(OpenIdConnectDefaults.UserstatePropertiesKey, userState); 204Assert.Equal(userState ?? string.Empty, actualProperties.Items[OpenIdConnectDefaults.UserstatePropertiesKey]); 241Assert.Equal(userState, actualProperties.Items[OpenIdConnectDefaults.UserstatePropertiesKey]); 245Assert.False(actualProperties.Items.ContainsKey(OpenIdConnectDefaults.UserstatePropertiesKey)); 440var nonceCookie = challengeCookies.Where(cookie => cookie.Name.StartsWith(OpenIdConnectDefaults.CookieNoncePrefix, StringComparison.Ordinal)).Single();
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 (4)
963return context.SignOutAsync(OpenIdConnectDefaults.AuthenticationScheme); 990return context.SignOutAsync(OpenIdConnectDefaults.AuthenticationScheme); 1274auth.DefaultChallengeScheme = OpenIdConnectDefaults.AuthenticationScheme; 1337{ OpenIdConnectDefaults.RedirectUriForCodePropertiesKey, "redirect_uri" },
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (4)
963return context.SignOutAsync(OpenIdConnectDefaults.AuthenticationScheme); 990return context.SignOutAsync(OpenIdConnectDefaults.AuthenticationScheme); 1274auth.DefaultChallengeScheme = OpenIdConnectDefaults.AuthenticationScheme; 1335{ OpenIdConnectDefaults.RedirectUriForCodePropertiesKey, "redirect_uri" },
OpenIdConnect\OpenIdConnectTests.cs (8)
80var nonce = Assert.Single(setCookie.Value, v => v.StartsWith(OpenIdConnectDefaults.CookieNoncePrefix, StringComparison.Ordinal)); 107var nonce = Assert.Single(setCookie.Value, v => v.StartsWith(OpenIdConnectDefaults.CookieNoncePrefix, StringComparison.Ordinal)); 443var options = sp.GetRequiredService<IOptionsMonitor<OpenIdConnectOptions>>().Get(OpenIdConnectDefaults.AuthenticationScheme); 476var options = sp.GetRequiredService<IOptionsMonitor<OpenIdConnectOptions>>().Get(OpenIdConnectDefaults.AuthenticationScheme); 484Assert.Equal(OpenIdConnectDefaults.CookieNoncePrefix, options.NonceCookie.Name); 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()