Skip to content

class CookieAuthenticationOptions

cangjie
public class CookieAuthenticationOptions <: AuthenticationSchemeOptions

功能:表示 Cookie 身份验证方案选项。

父类型:

成员概览

成员功能
var cookie指定用于生成认证 Cookie 的构建器。
var slidingExpiration指定是否启用滑动过期。
var expireTimeSpan指定票据默认有效期。
var events指定 Cookie 身份验证事件处理器。
var sessionStore指定可选的票据会话存储。
var dataProtector指定用于保护票据的保护器。
var loginPath指定登录路径。
var logoutPath指定登出路径。
var cookieManager指定 Cookie 读写管理器。
var accessDeniedPath指定拒绝访问路径。
var returnUrlParameter指定返回地址查询参数名称。
var ticketDataFormat指定票据保护格式化器。

cangjie
public var cookie = CookieBuilder()

功能:指定用于生成认证 Cookie 的构建器。

var slidingExpiration

cangjie
public var slidingExpiration = false

功能:指定是否启用滑动过期。

var expireTimeSpan

cangjie
public var expireTimeSpan = Duration.day * 14

功能:指定票据默认有效期。

var events

cangjie
public var events = CookieAuthenticationEvents()

功能:指定 Cookie 身份验证事件处理器。

var sessionStore

cangjie
public var sessionStore: ?ITicketStore = None

功能:指定可选的票据会话存储。

类型:?ITicketStore

var dataProtector

cangjie
public var dataProtector: ?IDataProtector = None

功能:指定用于保护票据的保护器。

类型:?IDataProtector

var loginPath

cangjie
public var loginPath = CookieAuthenticationDefaults.LoginPath

功能:指定登录路径。

var logoutPath

cangjie
public var logoutPath = CookieAuthenticationDefaults.LogoutPath

功能:指定登出路径。

var cookieManager

cangjie
public var cookieManager: ICookieManager = ChunkingCookieManager()

功能:指定 Cookie 读写管理器。

类型:ICookieManager

var accessDeniedPath

cangjie
public var accessDeniedPath = CookieAuthenticationDefaults.AccessDeniedPath

功能:指定拒绝访问路径。

var returnUrlParameter

cangjie
public var returnUrlParameter = CookieAuthenticationDefaults.ReturnUrlParameter

功能:指定返回地址查询参数名称。

var ticketDataFormat

cangjie
public var ticketDataFormat: ?ISecureDataFormat<AuthenticationTicket> = None

功能:指定票据保护格式化器。

类型:?ISecureDataFormat<AuthenticationTicket>