Sdílet prostřednictvím


IAuthenticationExtension.LogonUser(String, String, String) Method

Definition

Indicates whether the logon session for the user is associated with the given credentials.

public:
 bool LogonUser(System::String ^ userName, System::String ^ password, System::String ^ authority);
public bool LogonUser (string userName, string password, string authority);
abstract member LogonUser : string * string * string -> bool
Public Function LogonUser (userName As String, password As String, authority As String) As Boolean

Parameters

userName
String

The name associated with the credentials.

password
String

The password associated with the credentials.

authority
String

Optional. The specific authority to use to authenticate a user (for example, a Windows domain).

Returns

true if the logon session for the user is associated with the given credentials; otherwise, false.

Remarks

Your implementation of LogonUser should validate your report server users against a store of user names and passwords. For example, if you were using a Forms-based custom security extension, you might implement LogonUser to verify user names and passwords stored securely in a configuration file or a database table.

Applies to