CookieAuthenticationHandler 클래스

정의

쿠키 기반 인증 처리기에 대한 구현입니다.

public ref class CookieAuthenticationHandler : Microsoft::AspNetCore::Authentication::AuthenticationHandler<Microsoft::AspNetCore::Authentication::Cookies::CookieAuthenticationOptions ^>, Microsoft::AspNetCore::Authentication::IAuthenticationSignInHandler
public ref class CookieAuthenticationHandler : Microsoft::AspNetCore::Authentication::SignInAuthenticationHandler<Microsoft::AspNetCore::Authentication::Cookies::CookieAuthenticationOptions ^>
public class CookieAuthenticationHandler : Microsoft.AspNetCore.Authentication.AuthenticationHandler<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions>, Microsoft.AspNetCore.Authentication.IAuthenticationSignInHandler
public class CookieAuthenticationHandler : Microsoft.AspNetCore.Authentication.SignInAuthenticationHandler<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions>
type CookieAuthenticationHandler = class
    inherit AuthenticationHandler<CookieAuthenticationOptions>
    interface IAuthenticationSignInHandler
    interface IAuthenticationSignOutHandler
    interface IAuthenticationHandler
type CookieAuthenticationHandler = class
    inherit SignInAuthenticationHandler<CookieAuthenticationOptions>
Public Class CookieAuthenticationHandler
Inherits AuthenticationHandler(Of CookieAuthenticationOptions)
Implements IAuthenticationSignInHandler
Public Class CookieAuthenticationHandler
Inherits SignInAuthenticationHandler(Of CookieAuthenticationOptions)
상속
상속
구현

생성자

CookieAuthenticationHandler(IOptionsMonitor<CookieAuthenticationOptions>, ILoggerFactory, UrlEncoder)

CookieAuthenticationHandler의 새 인스턴스를 초기화합니다.

CookieAuthenticationHandler(IOptionsMonitor<CookieAuthenticationOptions>, ILoggerFactory, UrlEncoder, ISystemClock)
사용되지 않음.

CookieAuthenticationHandler의 새 인스턴스를 초기화합니다.

속성

ChallengeCalled

쿠키 기반 인증 처리기에 대한 구현입니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
ClaimsIssuer

클레임이 발급될 때 사용해야 하는 발급자를 가져옵니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
Clock
사용되지 않음.

ISystemClock를 가져옵니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
Context

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

(다음에서 상속됨 AuthenticationHandler<TOptions>)
CurrentUri

절대 현재 URL을 가져옵니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
Events

처리기는 처리가 발생하는 특정 지점에서 애플리케이션 제어를 제공하는 이벤트에 대한 메서드를 호출합니다. 컨트롤이 제공되지 않는 경우 메서드가 호출될 때 아무 작업도 수행되지 않는 기본 인스턴스가 제공됩니다.

InitializeResult

쿠키 기반 인증 처리기에 대한 구현입니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
Logger

ILogger를 가져옵니다.

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

이 인증 처리기와 연결된 옵션을 가져오거나 설정합니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
OptionsMonitor

옵션에 IOptionsMonitor<TOptions> 대한 변경 내용을 검색할 을 가져옵니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
OriginalPath

인증 미들웨어에서 볼 수 있는 경로를 가져옵니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
OriginalPathBase

인증 미들웨어에서 볼 수 있는 경로 기반을 가져옵니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
PriorHandler

쿠키 기반 인증 처리기에 대한 구현입니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
Request

HttpRequest 현재 요청과 연결된 을 가져옵니다.

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

HttpResponse 현재 요청과 연결된 을 가져옵니다.

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

이 인증 처리기를 사용하여 asssociated를 가져오거나 설정합니다 AuthenticationScheme .

(다음에서 상속됨 AuthenticationHandler<TOptions>)
SignInAccepted

쿠키 기반 인증 처리기에 대한 구현입니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
SignOutAccepted

쿠키 기반 인증 처리기에 대한 구현입니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
TimeProvider

주로 단위 테스트를 위한 현재 시간을 가져옵니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
UrlEncoder

UrlEncoder를 가져옵니다.

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

메서드

AuthenticateAsync()

현재 요청을 인증합니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
AuthenticateAsync(AuthenticateContext)

쿠키 기반 인증 처리기에 대한 구현입니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
BuildRedirectUri(String)

지정된 targetPath에 대한 절대 URL을 생성합니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
ChallengeAsync(AuthenticationProperties)

현재 요청에 이의를 제기합니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
ChallengeAsync(ChallengeContext)

쿠키 기반 인증 처리기에 대한 구현입니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
CreateEventsAsync()

이벤트 instance 새 instance 만듭니다.

FinishResponseAsync()

응답을 보낼 때 호출되는 후크

ForbidAsync(AuthenticationProperties)

현재 요청을 금지합니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
GetDescriptions(DescribeSchemesContext)

쿠키 기반 인증 처리기에 대한 구현입니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
HandleAuthenticateAsync()

파생 형식이 인증을 처리할 수 있도록 허용합니다.

HandleAuthenticateOnceAsync()

HandleAuthenticateAsync가 한 번만 호출되도록 하는 데 사용됩니다. 후속 호출은 동일한 인증 결과를 반환합니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
HandleAuthenticateOnceSafeAsync()

HandleAuthenticateAsync가 한 번만 안전하게 호출되도록 하는 데 사용됩니다. 후속 호출은 동일한 인증 결과를 반환합니다. 모든 예외는 예외를 포함하는 실패한 인증 결과로 변환됩니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
HandleChallengeAsync(AuthenticationProperties)

문제의 인증 체계가 요청 흐름의 일부로 인증 상호 작용을 처리하는 경우 401 챌린지 문제를 처리하도록 이 방법을 재정의합니다. 즉, 응답 헤더를 추가하거나 401 결과를 로그인 페이지 또는 외부 로그인 위치의 302로 변경합니다.

HandleForbiddenAsync(AuthenticationProperties)

Forbid를 처리하도록 이 메서드를 재정의합니다.

HandleForbiddenAsync(ChallengeContext)

이 메서드를 재정의하여 금지된 챌린지를 처리합니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
HandleRequestAsync()

초기화 후 공용 코드별로 한 번 호출됩니다. 인증 미들웨어가 특별히 알려진 경로에 직접 응답하는 경우 이 가상을 재정의하고, 요청 경로를 알려진 경로와 비교하고, 적절한 응답 정보를 제공하고, true로 응답 정보를 제공하여 추가 처리를 중지해야 합니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
HandleSignInAsync(ClaimsPrincipal, AuthenticationProperties)

SignIn을 처리하도록 이 메서드를 재정의합니다.

HandleSignInAsync(SignInContext)

쿠키 기반 인증 처리기에 대한 구현입니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
HandleSignOutAsync(AuthenticationProperties)

SignOut을 처리하도록 이 메서드를 재정의합니다.

HandleSignOutAsync(SignOutContext)

쿠키 기반 인증 처리기에 대한 구현입니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
HandleUnauthorizedAsync(ChallengeContext)

문제의 인증 체계가 요청 흐름의 일부로 인증 상호 작용을 처리하는 경우 401 챌린지 문제를 처리하도록 이 방법을 재정의합니다. 즉, 응답 헤더를 추가하거나 401 결과를 로그인 페이지 또는 외부 로그인 위치의 302로 변경합니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
InitializeAsync(AuthenticationScheme, HttpContext)

처리기를 초기화하고 옵션을 resolve 유효성을 검사합니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
InitializeAsync(TOptions, HttpContext, ILogger, UrlEncoder)

초기화는 요청당 한 번 호출되어 적절한 상태로 이 instance 컨텍스트화합니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
InitializeEventsAsync()

에 의해 요청당 한 번 호출되는 이벤트 개체를 InitializeAsync(AuthenticationScheme, HttpContext)초기화합니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
InitializeHandlerAsync()

처리기가 자체 초기화를 완료하도록 옵션/이벤트가 초기화된 후 호출됩니다.

ResolveTarget(String)

이 인증 작업이 전달되는 체계를 해결합니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
ShouldHandleScheme(String, Boolean)

쿠키 기반 인증 처리기에 대한 구현입니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
SignInAsync(ClaimsPrincipal, AuthenticationProperties)

쿠키 기반 인증 처리기에 대한 구현입니다.

SignInAsync(ClaimsPrincipal, AuthenticationProperties)

로그인을 처리합니다.

(다음에서 상속됨 SignInAuthenticationHandler<TOptions>)
SignInAsync(SignInContext)

쿠키 기반 인증 처리기에 대한 구현입니다.

(다음에서 상속됨 AuthenticationHandler<TOptions>)
SignOutAsync(AuthenticationProperties)

쿠키 기반 인증 처리기에 대한 구현입니다.

SignOutAsync(AuthenticationProperties)

로그아웃 동작.

(다음에서 상속됨 SignOutAuthenticationHandler<TOptions>)
SignOutAsync(SignOutContext)

쿠키 기반 인증 처리기에 대한 구현입니다.

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

적용 대상