AuthenticationManager.Authenticate(String, WebRequest, ICredentials) 메서드

정의

주의

The AuthenticationManager Authenticate and PreAuthenticate methods are not supported and throw PlatformNotSupportedException.

등록된 각 인증 모듈을 호출하여 인증 요청에 응답하는 첫 번째 모듈을 찾습니다.

public:
 static System::Net::Authorization ^ Authenticate(System::String ^ challenge, System::Net::WebRequest ^ request, System::Net::ICredentials ^ credentials);
[System.Obsolete("The AuthenticationManager Authenticate and PreAuthenticate methods are not supported and throw PlatformNotSupportedException.", DiagnosticId="SYSLIB0009", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Net.Authorization? Authenticate (string challenge, System.Net.WebRequest request, System.Net.ICredentials credentials);
public static System.Net.Authorization? Authenticate (string challenge, System.Net.WebRequest request, System.Net.ICredentials credentials);
public static System.Net.Authorization Authenticate (string challenge, System.Net.WebRequest request, System.Net.ICredentials credentials);
[<System.Obsolete("The AuthenticationManager Authenticate and PreAuthenticate methods are not supported and throw PlatformNotSupportedException.", DiagnosticId="SYSLIB0009", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member Authenticate : string * System.Net.WebRequest * System.Net.ICredentials -> System.Net.Authorization
static member Authenticate : string * System.Net.WebRequest * System.Net.ICredentials -> System.Net.Authorization
Public Shared Function Authenticate (challenge As String, request As WebRequest, credentials As ICredentials) As Authorization

매개 변수

challenge
String

인터넷 리소스가 반환한 요구입니다.

request
WebRequest

인증 챌린지를 시작한 요청입니다.

credentials
ICredentials

이 요청과 연결된 자격 증명입니다.

반환

인증을 시도한 결과가 들어 있는 Authorization 클래스의 인스턴스입니다. 요구(challenge)에 응답할 인증 모듈이 없으면, 이 메서드는 null을 반환합니다.

특성

예외

.NET Core 및 .NET 5+ 전용: 모든 경우

challengenull입니다.

또는

requestnull입니다.

또는

credentialsnull입니다.

설명

메서드는 Authenticate 모듈 중 하나가 instance 응답할 때까지 등록된 각 인증 모듈에서 메서드를 Authorization 호출 IAuthenticationModule.Authenticate 합니다.

반환된 첫 번째 Authorization instance 요청을 인증하는 데 사용됩니다. 인증 모듈이 요청을 인증할 수 없는 경우 메서드는 를 Authenticate 반환합니다 null.

인증 모듈은 에 등록된 AuthenticationManager순서대로 호출됩니다.

적용 대상