Skip to content

class CookieAuthenticationDefaults

cangjie
public class CookieAuthenticationDefaults

功能:提供 Cookie 身份验证默认值。

成员概览

成员功能
const Scheme默认身份验证方案名称。
const CookiePrefix默认 Cookie 名称前缀。
let LoginPath默认登录路径。
let LogoutPath默认登出路径。
let AccessDeniedPath默认拒绝访问路径。
const ReturnUrlParameter默认返回地址参数名称。

const Scheme

cangjie
public static const Scheme = "Cookies"

功能:默认身份验证方案名称。

const CookiePrefix

cangjie
public static const CookiePrefix = ".cangjie."

功能:默认 Cookie 名称前缀。

let LoginPath

cangjie
public static let LoginPath = PathString("/account/login")

功能:默认登录路径。

let LogoutPath

cangjie
public static let LogoutPath = PathString("/account/logout")

功能:默认登出路径。

let AccessDeniedPath

cangjie
public static let AccessDeniedPath = PathString("/account/accessDenied")

功能:默认拒绝访问路径。

const ReturnUrlParameter

cangjie
public static const ReturnUrlParameter = "returnUrl"

功能:默认返回地址参数名称。