Share via


WebAuthenticationBroker.AuthenticateAsync 메서드

정의

오버로드

AuthenticateAsync(WebAuthenticationOptions, Uri)

두 개의 입력으로 비동기 인증 작업을 시작합니다. 단일 애플리케이션 또는 여러 애플리케이션에서 동시에 이 메서드를 여러 번 호출할 수 있습니다.

AuthenticateAsync(WebAuthenticationOptions, Uri, Uri)

세 개의 입력으로 비동기 인증 작업을 시작합니다. 단일 애플리케이션 또는 여러 애플리케이션에서 동시에 이 메서드를 여러 번 호출할 수 있습니다.

AuthenticateAsync(WebAuthenticationOptions, Uri)

두 개의 입력으로 비동기 인증 작업을 시작합니다. 단일 애플리케이션 또는 여러 애플리케이션에서 동시에 이 메서드를 여러 번 호출할 수 있습니다.

public:
 static IAsyncOperation<WebAuthenticationResult ^> ^ AuthenticateAsync(WebAuthenticationOptions options, Uri ^ requestUri);
/// [Windows.Foundation.Metadata.Overload("AuthenticateWithoutCallbackUriAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<WebAuthenticationResult> AuthenticateAsync(WebAuthenticationOptions const& options, Uri const& requestUri);
[Windows.Foundation.Metadata.Overload("AuthenticateWithoutCallbackUriAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<WebAuthenticationResult> AuthenticateAsync(WebAuthenticationOptions options, System.Uri requestUri);
function authenticateAsync(options, requestUri)
Public Shared Function AuthenticateAsync (options As WebAuthenticationOptions, requestUri As Uri) As IAsyncOperation(Of WebAuthenticationResult)

매개 변수

options
WebAuthenticationOptions

인증 작업에 대한 옵션입니다.

requestUri
Uri Uri

웹 서비스의 시작 URI입니다. 이 URI는 https:// 보안 주소여야 합니다.

반환

상태 쿼리하고 인증 작업의 결과를 가져오는 방법입니다. 잘못된 매개 변수 오류가 발생하는 경우 가장 일반적인 원인은 requestUri 매개 변수에 HTTPS를 사용하지 않는 것입니다.

특성

설명

이 메서드에는 명시적 callbackUri 매개 변수가 없습니다. 애플리케이션의 기본 URI는 내부적으로 종결자로 사용됩니다. 자세한 내용은 GetCurrentApplicationCallbackUri를 참조하세요.

추가 정보

적용 대상

AuthenticateAsync(WebAuthenticationOptions, Uri, Uri)

세 개의 입력으로 비동기 인증 작업을 시작합니다. 단일 애플리케이션 또는 여러 애플리케이션에서 동시에 이 메서드를 여러 번 호출할 수 있습니다.

public:
 static IAsyncOperation<WebAuthenticationResult ^> ^ AuthenticateAsync(WebAuthenticationOptions options, Uri ^ requestUri, Uri ^ callbackUri);
/// [Windows.Foundation.Metadata.Overload("AuthenticateWithCallbackUriAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<WebAuthenticationResult> AuthenticateAsync(WebAuthenticationOptions const& options, Uri const& requestUri, Uri const& callbackUri);
[Windows.Foundation.Metadata.Overload("AuthenticateWithCallbackUriAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<WebAuthenticationResult> AuthenticateAsync(WebAuthenticationOptions options, System.Uri requestUri, System.Uri callbackUri);
function authenticateAsync(options, requestUri, callbackUri)
Public Shared Function AuthenticateAsync (options As WebAuthenticationOptions, requestUri As Uri, callbackUri As Uri) As IAsyncOperation(Of WebAuthenticationResult)

매개 변수

options
WebAuthenticationOptions

인증 작업에 대한 옵션입니다.

requestUri
Uri Uri

웹 서비스의 시작 URI입니다. 이 URI는 https:// 보안 주소여야 합니다.

callbackUri
Uri Uri

웹 인증 완료를 나타내는 콜백 URI입니다. broker는 탐색하려는 모든 URI에 대해 이 URI와 일치합니다. 브로커는 이 URI로 이동하지 않고 사용자가 링크를 클릭하거나 웹 서버 리디렉션이 수행될 때 브로커가 컨트롤을 애플리케이션으로 다시 반환합니다.

반환

상태 쿼리하고 인증 작업의 결과를 가져오는 방법입니다. 잘못된 매개 변수 오류가 발생하는 경우 가장 일반적인 원인은 requestUri 매개 변수에 HTTPS를 사용하지 않는 것입니다.

특성

설명

이 메서드를 사용하면 동일하거나 다른 UWP 앱의 여러 호출에서 세션 상태 또는 지속형 쿠키가 유지되지 않습니다. 이 메서드는 UI 스레드에서 호출해야 합니다.

추가 정보

적용 대상