CookieSlidingExpirationContext 클래스

정의

CookieAuthenticationEvents OnCheckSlidingExpiration 메서드에 전달된 컨텍스트 개체입니다.

public class CookieSlidingExpirationContext : Microsoft.AspNetCore.Authentication.PrincipalContext<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions>
type CookieSlidingExpirationContext = class
    inherit PrincipalContext<CookieAuthenticationOptions>
Public Class CookieSlidingExpirationContext
Inherits PrincipalContext(Of CookieAuthenticationOptions)
상속

생성자

CookieSlidingExpirationContext(HttpContext, AuthenticationScheme, CookieAuthenticationOptions, AuthenticationTicket, TimeSpan, TimeSpan)

컨텍스트 개체의 새 인스턴스를 만듭니다.

속성

ElapsedTime

쿠키가 발급되거나 갱신된 이후 경과된 시간입니다.

HttpContext

컨텍스트입니다.

(다음에서 상속됨 BaseContext<TOptions>)
Options

스키마와 연결된 인증 옵션을 가져옵니다.

(다음에서 상속됨 BaseContext<TOptions>)
Principal

사용자 클레임이 ClaimsPrincipal 포함된 을 가져옵니다.

(다음에서 상속됨 PrincipalContext<TOptions>)
Properties

AuthenticationProperties를 가져오거나 설정합니다.

(다음에서 상속됨 PropertiesContext<TOptions>)
RemainingTime

쿠키가 만료될 때까지 남은 시간입니다.

Request

요청입니다.

(다음에서 상속됨 BaseContext<TOptions>)
Response

응답입니다.

(다음에서 상속됨 BaseContext<TOptions>)
Scheme

인증 체계입니다.

(다음에서 상속됨 BaseContext<TOptions>)
ShouldRenew

true이면 쿠키가 갱신됩니다. 경과된 시간이 남은 시간(예: 만료된 50% 이상)보다 큰 경우 초기 값은 true가 됩니다.

적용 대상