语言

ReportExecutionService.LogonUser(String, String, String) 方法

定义

登录用户并认证向报告服务器Web服务发送的用户请求。

public:
 void LogonUser(System::String ^ userName, System::String ^ password, System::String ^ authority);
public void LogonUser(string userName, string password, string authority);
member this.LogonUser : string * string * string -> unit
Public Sub LogonUser (userName As String, password As String, authority As String)

参数

userName
String

用户的名称。

password
String

用户的密码。

authority
String

Optional. 认证用户时应使用的域名。 比如,Windows域。 在 Visual Basic 中传递 (nullNothing) 的值以省略此参数。

注解

下表显示了该操作的头部和权限信息。

SOAP头的使用 (出局) ServerInfoHeaderValue
本地模式所需权限 None
SharePoint 模式 必要权限 None

这种方法只适用于自定义安全扩展。 更多信息请参见 网络服务认证 。

当自定义认证已配置后,该 LogonUser 方法会将指定的用户认证到报告服务器的 Web 服务。

LogonUser 必须通过安全套接字层(SSL)调用。 如果方法没有被安全调用,则该方法失败。 认证成功后,报告服务器的 Web 服务生成一个认证 Cookie,并在 HTTPS 头部返回该 Cookie。 响应通过SSL返回。

适用于