Table of Contents

Class ConfigureStandardCookieAuthenticationOptions

Namespace
Arc4u.OAuth2.Options
Assembly
Arc4u.OAuth2.AspNetCore.Authentication.dll

Configures the authentication cookie when no ticket store is used (the session is kept in the cookie). It is registered (with TryAddSingleton) by AddOidcAuthentication and AddHybridAuthentication when AuthenticationCacheTicketStoreOption is not set.

public class ConfigureStandardCookieAuthenticationOptions : IPostConfigureOptions<CookieAuthenticationOptions>
Inheritance
ConfigureStandardCookieAuthenticationOptions
Implements
Inherited Members

Constructors

ConfigureStandardCookieAuthenticationOptions(IOptionsMonitor<OidcAuthenticationOptions>)

Initializes a new instance of the ConfigureStandardCookieAuthenticationOptions class.

public ConfigureStandardCookieAuthenticationOptions(IOptionsMonitor<OidcAuthenticationOptions> optionsMonitor)

Parameters

optionsMonitor IOptionsMonitor<OidcAuthenticationOptions>

The OpenID Connect authentication options.

Methods

PostConfigure(string?, CookieAuthenticationOptions)

Configures the cookie: the name comes from CookieName, the expiration is the shorter of AuthenticationTicketTtl and RefreshTokenLifetime (sliding), and the cookie is essential, SameSite=Lax and secure.

public void PostConfigure(string? name, CookieAuthenticationOptions options)

Parameters

name string

The name of the options instance.

options CookieAuthenticationOptions

The cookie options to configure.