OpenIdConnectHandler 클래스

정의

OpenIdConnectAuthenticationMiddleware에 대한 요청별 인증 처리기입니다.

public ref class OpenIdConnectHandler : Microsoft::AspNetCore::Authentication::RemoteAuthenticationHandler<Microsoft::AspNetCore::Builder::OpenIdConnectOptions ^>
public ref class OpenIdConnectHandler : Microsoft::AspNetCore::Authentication::RemoteAuthenticationHandler<Microsoft::AspNetCore::Authentication::OpenIdConnect::OpenIdConnectOptions ^>, Microsoft::AspNetCore::Authentication::IAuthenticationSignOutHandler
public class OpenIdConnectHandler : Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<Microsoft.AspNetCore.Builder.OpenIdConnectOptions>
public class OpenIdConnectHandler : Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions>, Microsoft.AspNetCore.Authentication.IAuthenticationSignOutHandler
type OpenIdConnectHandler = class
    inherit RemoteAuthenticationHandler<OpenIdConnectOptions>
type OpenIdConnectHandler = class
    inherit RemoteAuthenticationHandler<OpenIdConnectOptions>
    interface IAuthenticationSignOutHandler
    interface IAuthenticationHandler
Public Class OpenIdConnectHandler
Inherits RemoteAuthenticationHandler(Of OpenIdConnectOptions)
Public Class OpenIdConnectHandler
Inherits RemoteAuthenticationHandler(Of OpenIdConnectOptions)
Implements IAuthenticationSignOutHandler
상속
상속
구현

생성자

Name Description
OpenIdConnectHandler(HttpClient, HtmlEncoder)

OpenIdConnectAuthenticationMiddleware에 대한 요청별 인증 처리기입니다.

OpenIdConnectHandler(IOptionsMonitor<OpenIdConnectOptions>, ILoggerFactory, HtmlEncoder, UrlEncoder, ISystemClock)
사용되지 않음.

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

OpenIdConnectHandler(IOptionsMonitor<OpenIdConnectOptions>, ILoggerFactory, HtmlEncoder, UrlEncoder)

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

속성

Name Description
Backchannel

HttpClient 원격 ID 공급자와 통신하는 데 사용되는 값을 가져옵니다.

ClaimsIssuer

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

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

ISystemClock를 가져옵니다.

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

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

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

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

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

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

HtmlEncoder

HtmlEncoder를 가져옵니다.

Logger

ILogger를 가져옵니다.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

로그인에 기본적으로 사용되는 인증 체계입니다.

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

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

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

UrlEncoder를 가져옵니다.

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

메서드

Name Description
AuthenticateAsync()

현재 요청을 인증합니다.

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

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

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

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

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

이벤트 인스턴스의 새 인스턴스를 만듭니다.

ForbidAsync(AuthenticationProperties)

현재 요청을 금지합니다.

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

현재 원격 인증 요청의 상관 관계를 지정하는 데 사용되는 nonce가 포함된 쿠키를 생성합니다.

(다음에서 상속됨 RemoteAuthenticationHandler<TOptions>)
GetUserInformationAsync(OpenIdConnectMessage, JwtSecurityToken, AuthenticationTicket)

UserInfo 엔드포인트로 이동하여 추가 클레임을 검색하고 지정된 ID에 고유한 클레임을 추가합니다.

GetUserInformationAsync(OpenIdConnectMessage, JwtSecurityToken, ClaimsPrincipal, AuthenticationProperties)

UserInfo 엔드포인트로 이동하여 추가 클레임을 검색하고 지정된 ID에 고유한 클레임을 추가합니다.

HandleAccessDeniedErrorAsync(AuthenticationProperties)

파생 형식은 액세스 거부 오류를 처리하도록 이 메서드를 재정의할 수 있습니다.

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

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

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

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

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

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

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

401 챌린지에 응답합니다. ID를 얻기 위해 OpenIdConnect 메시지를 'ID 기관'에 보냅니다.

HandleForbiddenAsync(AuthenticationProperties)

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

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

들어오는 OpenIdConnect 메시지를 처리하기 위해 호출됩니다.

HandleRemoteSignOutAsync()

ID 공급자가 보낸 원격 로그아웃 요청을 처리합니다.

HandleRequestAsync()

현재 인증 요청을 처리합니다.

HandleSignOutAsync(SignOutContext)

로그아웃을 위해 사용자를 ID 공급자로 리디렉션

HandleSignOutCallbackAsync()

세션이 종료된 후 OpenId 공급자의 콜백에 대한 응답입니다.

HandleUnauthorizedAsync(ChallengeContext)

401 챌린지에 응답합니다. ID를 얻기 위해 OpenIdConnect 메시지를 'ID 기관'에 보냅니다.

InitializeAsync(AuthenticationScheme, HttpContext)

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

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

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

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

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

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

토큰 엔드포인트에서 토큰에 대한 권한 부여 코드를 사용합니다.

ResolveTarget(String)

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

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

현재 인증 요청을 처리 HandleRequestAsync()해야 하는지 여부를 결정하는 값을 가져옵니다.

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

로그아웃을 위해 사용자를 ID 공급자로 리디렉션

ValidateCorrelationId(AuthenticationProperties)

현재 요청이 현재 원격 인증 요청과 관련이 있는지 확인합니다.

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

적용 대상