Jaa


ReportServiceAuthentication.LogonUser Method

Logs on a user and authenticates a user request to the Report Server Web service.

Namespace: ReportServiceAuthentication
Assembly: ReportServiceAuthentication (in reportserviceauthentication.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/LogonUser", RequestNamespace:="https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", ResponseNamespace:="https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", Use:=SoapBindingUse.Literal, ParameterStyle:=SoapParameterStyle.Wrapped)> _
Public Function LogonUser ( _
    userName As String, _
    password As String, _
    authority As String, _
    <OutAttribute> ByRef cookieName As String _
) As Boolean
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/LogonUser", RequestNamespace="https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", ResponseNamespace="https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)] 
public bool LogonUser (
    string userName,
    string password,
    string authority,
    out string cookieName
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/LogonUser", RequestNamespace=L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", ResponseNamespace=L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", Use=SoapBindingUse::Literal, ParameterStyle=SoapParameterStyle::Wrapped)] 
public:
bool LogonUser (
    String^ userName, 
    String^ password, 
    String^ authority, 
    [OutAttribute] String^% cookieName
)
/** @attribute SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/LogonUser", RequestNamespace="https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", ResponseNamespace="https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped) */ 
public boolean LogonUser (
    String userName, 
    String password, 
    String authority, 
    /** @attribute OutAttribute() */ /** @ref */ String cookieName
)
JScript does not support passing value-type arguments by reference.

Parameters

  • userName
    The name of the user.
  • password
    The password for the user.
  • authority
    The specific authority to use when authenticating a user.
  • cookieName
    The name assigned to the cookie.

Return Value

true if the user was successfully authenticated; otherwise, false.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Server 2008, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional with Service Pack 2 (SP2), Windows 2000 Professional, Windows 2000 Advanced Server, Windows XP Home Edition, For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005., Windows Vista, Windows Mobile 5.0, Windows Mobile 2003 for Pocket PC, Windows CE 5.0

See Also

Reference

ReportServiceAuthentication Class
ReportServiceAuthentication Members
ReportServiceAuthentication Namespace