3 instantiations of OpenIdConnectOptions
Microsoft.AspNetCore.Authentication.Test (3)
OpenIdConnect\OpenIdConnectTests.cs (2)
375
var options = new
OpenIdConnectOptions
();
387
var options = new
OpenIdConnectOptions
();
OpenIdConnect\TestServerBuilder.cs (1)
29
new
OpenIdConnectOptions
82 references to OpenIdConnectOptions
Aspire.Keycloak.Authentication (5)
AspireKeycloakExtensions.cs (5)
131
/// <param name="configureOptions">An action to configure the <see cref="
OpenIdConnectOptions
"/>.</param>
136
public static AuthenticationBuilder AddKeycloakOpenIdConnect(this AuthenticationBuilder builder, string serviceName, string realm, Action<
OpenIdConnectOptions
>? configureOptions)
146
/// <param name="configureOptions">An action to configure the <see cref="
OpenIdConnectOptions
"/>.</param>
156
Action<
OpenIdConnectOptions
>? configureOptions)
165
.AddOptions<
OpenIdConnectOptions
>(authenticationScheme)
Aspire.Keycloak.Authentication.Tests (6)
AspireKeycloakExtensionTests.cs (6)
111
host.Services.GetRequiredService<IOptionsMonitor<
OpenIdConnectOptions
>>()
131
host.Services.GetRequiredService<IOptionsMonitor<
OpenIdConnectOptions
>>().Get(scheme));
152
var
options = host.Services.GetRequiredService<IOptionsMonitor<
OpenIdConnectOptions
>>()
175
var
options = host.Services.GetRequiredService<IOptionsMonitor<
OpenIdConnectOptions
>>()
Microsoft.AspNetCore.Authentication.OpenIdConnect (46)
Events\AuthenticationFailedContext.cs (2)
12
public class AuthenticationFailedContext : RemoteAuthenticationContext<
OpenIdConnectOptions
>
18
public AuthenticationFailedContext(HttpContext context, AuthenticationScheme scheme,
OpenIdConnectOptions
options)
Events\AuthorizationCodeReceivedContext.cs (2)
14
public class AuthorizationCodeReceivedContext : RemoteAuthenticationContext<
OpenIdConnectOptions
>
22
OpenIdConnectOptions
options,
Events\MessageReceivedContext.cs (2)
12
public class MessageReceivedContext : RemoteAuthenticationContext<
OpenIdConnectOptions
>
21
OpenIdConnectOptions
options,
Events\OpenIdConnectEvents.cs (2)
39
/// Invoked before redirecting to the <see cref="
OpenIdConnectOptions
.SignedOutRedirectUri"/> at the end of a remote sign-out flow.
97
/// Invoked before redirecting to the <see cref="
OpenIdConnectOptions
.SignedOutRedirectUri"/> at the end of a remote sign-out flow.
Events\PushedAuthorizationContext.cs (2)
13
public sealed class PushedAuthorizationContext : PropertiesContext<
OpenIdConnectOptions
>
19
public PushedAuthorizationContext(HttpContext context, AuthenticationScheme scheme,
OpenIdConnectOptions
options, OpenIdConnectMessage parRequest, AuthenticationProperties properties)
Events\RedirectContext.cs (2)
14
public class RedirectContext : PropertiesContext<
OpenIdConnectOptions
>
23
OpenIdConnectOptions
options,
Events\RemoteSignoutContext.cs (2)
12
public class RemoteSignOutContext : RemoteAuthenticationContext<
OpenIdConnectOptions
>
18
public RemoteSignOutContext(HttpContext context, AuthenticationScheme scheme,
OpenIdConnectOptions
options, OpenIdConnectMessage? message)
Events\TokenResponseReceivedContext.cs (2)
13
public class TokenResponseReceivedContext : RemoteAuthenticationContext<
OpenIdConnectOptions
>
18
public TokenResponseReceivedContext(HttpContext context, AuthenticationScheme scheme,
OpenIdConnectOptions
options, ClaimsPrincipal user, AuthenticationProperties properties)
Events\TokenValidatedContext.cs (2)
14
public class TokenValidatedContext : RemoteAuthenticationContext<
OpenIdConnectOptions
>
20
public TokenValidatedContext(HttpContext context, AuthenticationScheme scheme,
OpenIdConnectOptions
options, ClaimsPrincipal principal, AuthenticationProperties properties)
Events\UserInformationReceivedContext.cs (2)
14
public class UserInformationReceivedContext : RemoteAuthenticationContext<
OpenIdConnectOptions
>
20
public UserInformationReceivedContext(HttpContext context, AuthenticationScheme scheme,
OpenIdConnectOptions
options, ClaimsPrincipal principal, AuthenticationProperties properties)
OpenIdConnectConfigureOptions.cs (3)
12
internal sealed class OpenIdConnectConfigureOptions : IConfigureNamedOptions<
OpenIdConnectOptions
>
29
public void Configure(string? name,
OpenIdConnectOptions
options)
124
public void Configure(
OpenIdConnectOptions
options)
OpenIdConnectExtensions.cs (9)
38
/// <param name="configureOptions">A delegate to configure <see cref="
OpenIdConnectOptions
"/>.</param>
40
public static AuthenticationBuilder AddOpenIdConnect(this AuthenticationBuilder builder, Action<
OpenIdConnectOptions
> configureOptions)
52
/// <param name="configureOptions">A delegate to configure <see cref="
OpenIdConnectOptions
"/>.</param>
54
public static AuthenticationBuilder AddOpenIdConnect(this AuthenticationBuilder builder, string authenticationScheme, Action<
OpenIdConnectOptions
> configureOptions)
67
/// <param name="configureOptions">A delegate to configure <see cref="
OpenIdConnectOptions
"/>.</param>
69
public static AuthenticationBuilder AddOpenIdConnect(this AuthenticationBuilder builder, string authenticationScheme, string? displayName, Action<
OpenIdConnectOptions
> configureOptions)
71
builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<
OpenIdConnectOptions
>, OpenIdConnectConfigureOptions>());
72
builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<
OpenIdConnectOptions
>, OpenIdConnectPostConfigureOptions>());
73
return builder.AddRemoteScheme<
OpenIdConnectOptions
, OpenIdConnectHandler>(authenticationScheme, displayName, configureOptions);
OpenIdConnectHandler.cs (7)
30
public class OpenIdConnectHandler : RemoteAuthenticationHandler<
OpenIdConnectOptions
>, IAuthenticationSignOutHandler
50
/// <param name="options">A monitor to observe changes to <see cref="
OpenIdConnectOptions
"/>.</param>
56
public OpenIdConnectHandler(IOptionsMonitor<
OpenIdConnectOptions
> options, ILoggerFactory logger, HtmlEncoder htmlEncoder, UrlEncoder encoder, ISystemClock clock)
65
/// <param name="options">A monitor to observe changes to <see cref="
OpenIdConnectOptions
"/>.</param>
69
public OpenIdConnectHandler(IOptionsMonitor<
OpenIdConnectOptions
> options, ILoggerFactory logger, HtmlEncoder htmlEncoder, UrlEncoder encoder)
1156
/// <remarks><see cref="M:IResponseCookies.Append"/> of <see cref="HttpResponse.Cookies"/> is called to add a cookie with the name: 'OpenIdConnectAuthenticationDefaults.Nonce + <see cref="M:ISecureDataFormat{TData}.Protect"/>(nonce)' of <see cref="
OpenIdConnectOptions
.StringDataFormat"/>.
1176
/// <see cref="M:ISecureDataFormat{TData}.Unprotect"/> of <see cref="
OpenIdConnectOptions
.StringDataFormat"/> is used to obtain the actual 'nonce'. If the nonce is found, then <see cref="M:IResponseCookies.Delete"/> of <see cref="HttpResponse.Cookies"/> is called.</remarks>
OpenIdConnectOptions.cs (4)
29
/// Initializes a new <see cref="
OpenIdConnectOptions
"/>
110
+ $"{nameof(Configuration)}, or {nameof(ConfigurationManager)} to {nameof(
OpenIdConnectOptions
)}");
343
private readonly
OpenIdConnectOptions
_options;
345
public OpenIdConnectNonceCookieBuilder(
OpenIdConnectOptions
oidcOptions)
OpenIdConnectPostConfigureOptions.cs (3)
14
/// Used to setup defaults for all <see cref="
OpenIdConnectOptions
"/>.
16
public class OpenIdConnectPostConfigureOptions : IPostConfigureOptions<
OpenIdConnectOptions
>
34
public void PostConfigure(string? name,
OpenIdConnectOptions
options)
Microsoft.AspNetCore.Authentication.Test (23)
OpenIdConnect\OpenIdConnectConfigurationTests.cs (3)
20
private void ConfigureDefaults(
OpenIdConnectOptions
o)
554
private TestServer BuildTestServer(Action<
OpenIdConnectOptions
> options)
572
Action<
OpenIdConnectOptions
> options,
OpenIdConnect\OpenIdConnectTests.cs (11)
375
var
options = new OpenIdConnectOptions();
387
var
options = new OpenIdConnectOptions();
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 (6)
28
public static
OpenIdConnectOptions
CreateOpenIdConnectOptions() =>
36
public static
OpenIdConnectOptions
CreateOpenIdConnectOptions(Action<
OpenIdConnectOptions
> update)
38
var
options = CreateOpenIdConnectOptions();
54
public static TestServer CreateServer(Action<
OpenIdConnectOptions
> options)
60
Action<
OpenIdConnectOptions
> options,
OpenIdConnect\TestSettings.cs (3)
22
private readonly Action<
OpenIdConnectOptions
> _configureOptions;
23
private
OpenIdConnectOptions
_options;
29
public TestSettings(Action<
OpenIdConnectOptions
> configure, HttpMessageHandler backchannel = null)
OpenIdConnectSample (2)
Startup.cs (2)
141
public void Configure(IApplicationBuilder app, IOptionsMonitor<
OpenIdConnectOptions
> optionsMonitor)
250
var
options = optionsMonitor.Get(OpenIdConnectDefaults.AuthenticationScheme);