AuthenticationHandler<TOptions> 클래스

정의

를 구현하기 위한 의견이 있는 추상화입니다 IAuthenticationHandler.

generic <typename TOptions>
 where TOptions : AuthenticationOptionspublic ref class AuthenticationHandler abstract : Microsoft::AspNetCore::Http::Features::Authentication::IAuthenticationHandler
generic <typename TOptions>
 where TOptions : AuthenticationSchemeOptionsgcnew()public ref class AuthenticationHandler abstract : Microsoft::AspNetCore::Authentication::IAuthenticationHandler
public abstract class AuthenticationHandler<TOptions> : Microsoft.AspNetCore.Http.Features.Authentication.IAuthenticationHandler where TOptions : AuthenticationOptions
public abstract class AuthenticationHandler<TOptions> : Microsoft.AspNetCore.Authentication.IAuthenticationHandler where TOptions : AuthenticationSchemeOptions, new()
type AuthenticationHandler<'Options (requires 'Options :> AuthenticationOptions)> = class
    interface IAuthenticationHandler
type AuthenticationHandler<'Options (requires 'Options :> AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options))> = class
    interface IAuthenticationHandler
Public MustInherit Class AuthenticationHandler(Of TOptions)
Implements IAuthenticationHandler

형식 매개 변수

TOptions

인증 처리기를 구성하는 데 사용되는 옵션의 형식입니다.

상속
AuthenticationHandler<TOptions>
파생
구현

생성자

AuthenticationHandler<TOptions>()

를 구현하기 위한 의견이 있는 추상화입니다 IAuthenticationHandler.

AuthenticationHandler<TOptions>(IOptionsMonitor<TOptions>, ILoggerFactory, UrlEncoder)

AuthenticationHandler<TOptions>의 새 인스턴스를 초기화합니다.

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

AuthenticationHandler<TOptions>의 새 인스턴스를 초기화합니다.

속성

ChallengeCalled

를 구현하기 위한 의견이 있는 추상화입니다 IAuthenticationHandler.

ClaimsIssuer

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

Clock
사용되지 않음.

ISystemClock를 가져옵니다.

Context

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

CurrentUri

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

Events

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

InitializeResult

를 구현하기 위한 의견이 있는 추상화입니다 IAuthenticationHandler.

Logger

ILogger를 가져옵니다.

Options

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

OptionsMonitor

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

OriginalPath

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

OriginalPathBase

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

PriorHandler

를 구현하기 위한 의견이 있는 추상화입니다 IAuthenticationHandler.

Request

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

Response

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

Scheme

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

SignInAccepted

를 구현하기 위한 의견이 있는 추상화입니다 IAuthenticationHandler.

SignOutAccepted

를 구현하기 위한 의견이 있는 추상화입니다 IAuthenticationHandler.

TimeProvider

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

UrlEncoder

UrlEncoder를 가져옵니다.

메서드

AuthenticateAsync()

현재 요청을 인증합니다.

AuthenticateAsync(AuthenticateContext)

를 구현하기 위한 의견이 있는 추상화입니다 IAuthenticationHandler.

BuildRedirectUri(String)

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

ChallengeAsync(AuthenticationProperties)

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

ChallengeAsync(ChallengeContext)

를 구현하기 위한 의견이 있는 추상화입니다 IAuthenticationHandler.

CreateEventsAsync()

이벤트 instance 새 instance 만듭니다.

FinishResponseAsync()

응답이 전송될 때 호출되는 후크

ForbidAsync(AuthenticationProperties)

현재 요청을 금지합니다.

GetDescriptions(DescribeSchemesContext)

를 구현하기 위한 의견이 있는 추상화입니다 IAuthenticationHandler.

HandleAuthenticateAsync()

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

HandleAuthenticateOnceAsync()

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

HandleAuthenticateOnceSafeAsync()

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

HandleChallengeAsync(AuthenticationProperties)

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

HandleForbiddenAsync(AuthenticationProperties)

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

HandleForbiddenAsync(ChallengeContext)

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

HandleRequestAsync()

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

HandleSignInAsync(SignInContext)

를 구현하기 위한 의견이 있는 추상화입니다 IAuthenticationHandler.

HandleSignOutAsync(SignOutContext)

를 구현하기 위한 의견이 있는 추상화입니다 IAuthenticationHandler.

HandleUnauthorizedAsync(ChallengeContext)

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

InitializeAsync(AuthenticationScheme, HttpContext)

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

InitializeAsync(TOptions, HttpContext, ILogger, UrlEncoder)

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

InitializeEventsAsync()

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

InitializeHandlerAsync()

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

ResolveTarget(String)

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

ShouldHandleScheme(String, Boolean)

를 구현하기 위한 의견이 있는 추상화입니다 IAuthenticationHandler.

SignInAsync(SignInContext)

를 구현하기 위한 의견이 있는 추상화입니다 IAuthenticationHandler.

SignOutAsync(SignOutContext)

를 구현하기 위한 의견이 있는 추상화입니다 IAuthenticationHandler.

적용 대상