IWebAuthenticator.AuthenticateAsync(WebAuthenticatorOptions) 메서드

정의

지정된 URL로 이동하고 콜백/콜백 URL 체계로의 리디렉션을 대기하여 인증 흐름을 시작합니다.

public:
 System::Threading::Tasks::Task<Microsoft::Maui::Authentication::WebAuthenticatorResult ^> ^ AuthenticateAsync(Microsoft::Maui::Authentication::WebAuthenticatorOptions ^ webAuthenticatorOptions);
public System.Threading.Tasks.Task<Microsoft.Maui.Authentication.WebAuthenticatorResult> AuthenticateAsync (Microsoft.Maui.Authentication.WebAuthenticatorOptions webAuthenticatorOptions);
abstract member AuthenticateAsync : Microsoft.Maui.Authentication.WebAuthenticatorOptions -> System.Threading.Tasks.Task<Microsoft.Maui.Authentication.WebAuthenticatorResult>
Public Function AuthenticateAsync (webAuthenticatorOptions As WebAuthenticatorOptions) As Task(Of WebAuthenticatorResult)

매개 변수

webAuthenticatorOptions
WebAuthenticatorOptions

WebAuthenticatorOptions 이 인증 호출에 대한 추가 구성이 포함된 인스턴스입니다.

반환

WebAuthenticatorResult 이 작업의 결과가 포함된 개체입니다.

예외

사용자가 인증 흐름을 취소할 때 throw됩니다.

Windows: HTTP 요청 오류가 발생했을 때 throw됩니다.

Windows: 예기치 않은 HTTP 응답이 수신되었을 때 throw됩니다.

iOS/macOS: iOS 버전이 13보다 작거나 macOS가 13.1보다 작은 경우 throw됩니다.

Windows: 콜백 사용자 지정 URL 체계가 AppxManifest.xml 파일에 등록되지 않은 경우 throw됩니다.

Android: 콜백 URL에 대해 IntentFilter가 생성되지 않은 경우 throw됩니다.

적용 대상