AuthenticationService.ValidateUser(String, String, String) 메서드

정의

인증 티켓을 발급하지 않고 사용자 자격 증명을 인증합니다.

public:
 bool ValidateUser(System::String ^ username, System::String ^ password, System::String ^ customCredential);
[System.ServiceModel.OperationContract]
public bool ValidateUser(string username, string password, string customCredential);
[<System.ServiceModel.OperationContract>]
member this.ValidateUser : string * string * string -> bool
Public Function ValidateUser (username As String, password As String, customCredential As String) As Boolean

매개 변수

username
String

유효성을 검사할 사용자 이름입니다.

password
String

지정된 사용자의 암호입니다.

customCredential
String

유효성을 검사할 값과 유효성을 검사할 username 값(있는 경우)입니다 password.

반품

true사용자 자격 증명이 유효한 경우 그렇지 않으면 . false

특성

예외

userName 또는 password .입니다 null.

설명

이 메서드는 ValidateUser 사용자 자격 증명을 인증하지만 인증 쿠키를 설정하지는 않습니다. 인증 쿠키가 없으면 자격 증명이 유효한 경우에도 사용자가 로그인되지 않습니다.

인증 쿠키를 ValidateUser 받지 않고 사용자의 자격 증명이 유효한지 확인해야 하는 경우 이 메서드를 사용합니다. 예를 들어 인증 쿠키가 클라이언트 애플리케이션에 이미 저장되어 있지만 새 세션이 시작될 때 사용자의 자격 증명이 여전히 유효한지 확인하려는 경우 이 작업을 수행할 수 있습니다.

메서드는 ValidateUser 이벤트를 발생 Authenticating 시키지만 이벤트를 발생 CreatingCookie 시키지는 않습니다.

메모

웹 서버에서 실행되는 코드에서 메서드를 호출 ValidateUser 하지 마세요. WCF 서비스의 일부로만 메서드를 호출 ValidateUser 합니다. 자세한 내용은 ASP.NET 인증 참조하세요.

적용 대상

추가 정보