AuthenticationManager.Authenticate(String, WebRequest, ICredentials) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
주의
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);
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}")]
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);
static member Authenticate : string * System.Net.WebRequest * System.Net.ICredentials -> System.Net.Authorization
[<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
Public Shared Function Authenticate (challenge As String, request As WebRequest, credentials As ICredentials) As Authorization
매개 변수
- challenge
- String
인터넷 리소스에서 반환된 챌린지입니다.
- request
- WebRequest
인증 챌린지를 시작한 요청입니다.
- credentials
- ICredentials
이 요청과 연결된 자격 증명입니다.
반품
권한 부여 시도의 결과를 포함하는 클래스의 인스턴스 Authorization 입니다. 챌린지에 응답할 인증 모듈이 없으면 이 메서드가 반환됩니다 null.
- 특성
예외
.NET Core 및 .NET 5+만: 모든 경우에.
설명
이 메서드는 Authenticate 모듈 중 하나가 인스턴스로 응답할 때까지 등록된 각 인증 모듈에서 메서드를 IAuthenticationModule.Authenticate 호출 Authorization 합니다.
반환된 첫 번째 Authorization 인스턴스는 요청을 인증하는 데 사용됩니다. 인증 모듈이 요청을 인증할 수 없으면 메서드가 Authenticate 반환됩니다 null.
인증 모듈은 등록 순서대로 호출됩니다 AuthenticationManager.