OnlineIdAuthenticator.AuthenticateUserAsync 메서드

정의

오버로드

AuthenticateUserAsync(OnlineIdServiceTicketRequest)

자격 증명 또는 동의를 수집하고 티켓을 가져오는 데 필요한 경우 자격 증명 프롬프트를 표시하여 하나의 OnlineIdServiceTicketRequest 를 사용하여 비동기 인증 요청을 시작합니다. 사용자가 Microsoft 계정으로 Windows 8 시스템에 로그인한 경우 이 사용자는 인증 요청에 사용됩니다.

참고

Windows 10 이상용으로 개발하는 경우 Windows.Security.Authentication.Web.Core API를 대신 사용합니다. 자세한 내용은 웹 계정 관리자를 참조하세요.

AuthenticateUserAsync(IIterable<OnlineIdServiceTicketRequest>, CredentialPromptType)

여러 OnlineIdServiceTicketRequests 를 사용하여 비동기 인증 요청을 시작하고 티켓을 가져오기 위해 CredentialPromptType 을 설정하여 사용자 환경을 제어하는 기능을 제공합니다. 사용자가 Microsoft 계정으로 Windows 8 시스템에 로그인한 경우 이 사용자는 인증 요청에 사용됩니다.

참고

Windows 10 이상용으로 개발하는 경우 Windows.Security.Authentication.Web.Core API를 대신 사용합니다. 자세한 내용은 웹 계정 관리자를 참조하세요.

AuthenticateUserAsync(OnlineIdServiceTicketRequest)

자격 증명 또는 동의를 수집하고 티켓을 가져오는 데 필요한 경우 자격 증명 프롬프트를 표시하여 하나의 OnlineIdServiceTicketRequest 를 사용하여 비동기 인증 요청을 시작합니다. 사용자가 Microsoft 계정으로 Windows 8 시스템에 로그인한 경우 이 사용자는 인증 요청에 사용됩니다.

참고

Windows 10 이상용으로 개발하는 경우 Windows.Security.Authentication.Web.Core API를 대신 사용합니다. 자세한 내용은 웹 계정 관리자를 참조하세요.

public:
 virtual UserAuthenticationOperation ^ AuthenticateUserAsync(OnlineIdServiceTicketRequest ^ request) = AuthenticateUserAsync;
/// [Windows.Foundation.Metadata.Overload("AuthenticateUserAsync")]
UserAuthenticationOperation AuthenticateUserAsync(OnlineIdServiceTicketRequest const& request);
[Windows.Foundation.Metadata.Overload("AuthenticateUserAsync")]
public UserAuthenticationOperation AuthenticateUserAsync(OnlineIdServiceTicketRequest request);
function authenticateUserAsync(request)
Public Function AuthenticateUserAsync (request As OnlineIdServiceTicketRequest) As UserAuthenticationOperation

매개 변수

request
OnlineIdServiceTicketRequest

앱이 ID 속성 및 티켓을 얻기 위해 라이브 사용자를 인증하는 데 사용되는 서비스 및 정책을 지정하는 기능을 제공하는 요청 개체입니다.

반환

인증 작업을 나타내는 개체입니다.

특성

설명

이러한 메서드를 사용하는 경우 다음 오류 처리 지침을 고려합니다.

  • 비동기 인증 요청이 실패하면 IAsyncInfo 개체의 오류 코드에 오류가 캡처됩니다.
  • 비동기 인증 요청이 시작되고 일부 티켓을 받았지만 일부는 실패한 경우 응답이 S_OK.
  • 인증 요청 자체가 성공했지만 개별 티켓을 요청할 수 없는 경우 IAsyncInfo 는 S_OK 반환하지만 OnlineIdServiceTicket.ErrorCode 는 개별 티켓 오류 코드를 캡처합니다.
  • 모든 티켓 요청이 실패하면 IAsyncInfo 에 실제 오류 코드가 포함됩니다.
  • 모든 호출이 성공하고 모든 티켓을 성공적으로 가져온 경우 오류가 발생하지 않았음을 나타내는 오류 코드가 S_OK.

추가 정보

적용 대상

AuthenticateUserAsync(IIterable<OnlineIdServiceTicketRequest>, CredentialPromptType)

여러 OnlineIdServiceTicketRequests 를 사용하여 비동기 인증 요청을 시작하고 티켓을 가져오기 위해 CredentialPromptType 을 설정하여 사용자 환경을 제어하는 기능을 제공합니다. 사용자가 Microsoft 계정으로 Windows 8 시스템에 로그인한 경우 이 사용자는 인증 요청에 사용됩니다.

참고

Windows 10 이상용으로 개발하는 경우 Windows.Security.Authentication.Web.Core API를 대신 사용합니다. 자세한 내용은 웹 계정 관리자를 참조하세요.

public:
 virtual UserAuthenticationOperation ^ AuthenticateUserAsync(IIterable<OnlineIdServiceTicketRequest ^> ^ requests, CredentialPromptType credentialPromptType) = AuthenticateUserAsync;
/// [Windows.Foundation.Metadata.Overload("AuthenticateUserAsyncAdvanced")]
UserAuthenticationOperation AuthenticateUserAsync(IIterable<OnlineIdServiceTicketRequest> const& requests, CredentialPromptType const& credentialPromptType);
[Windows.Foundation.Metadata.Overload("AuthenticateUserAsyncAdvanced")]
public UserAuthenticationOperation AuthenticateUserAsync(IEnumerable<OnlineIdServiceTicketRequest> requests, CredentialPromptType credentialPromptType);
function authenticateUserAsync(requests, credentialPromptType)
Public Function AuthenticateUserAsync (requests As IEnumerable(Of OnlineIdServiceTicketRequest), credentialPromptType As CredentialPromptType) As UserAuthenticationOperation

매개 변수

credentialPromptType
CredentialPromptType

자격 증명 유형입니다.

반환

인증 작업을 나타내는 개체입니다.

특성

추가 정보

적용 대상