Back to Devexpress

AuthenticationServiceClient Class

corelibraries-devexpress-dot-reportserver-dot-servicemodel-dot-client.md

latest3.8 KB
Original Source

AuthenticationServiceClient Class

Provides the client-side functionality for the Report and Dashboard Server authentication service.

Namespace : DevExpress.ReportServer.ServiceModel.Client

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
public class AuthenticationServiceClient :
    ServiceClientBase,
    IAuthenticationServiceClient,
    IServiceClientBase
vb
Public Class AuthenticationServiceClient
    Inherits ServiceClientBase
    Implements IAuthenticationServiceClient,
               IServiceClientBase

Remarks

To provide a custom authentication service to a RemoteDocumentSource, handle the RemoteDocumentSource.AuthenticationServiceClientDemanded event.

To automatically create a AuthenticationServiceClient , you can use the AuthenticationServiceClientFactory.Create method of an AuthenticationServiceClientFactory.

A FormsAuthenticationEndpointBehavior should be passed to both an authentication service and report service before each authentication attempt at the Report Server. This class traces the authentication cookie by using a FormsAuthenticationMessageInspector.

If the clients’ configuration is provided via the applicaiton’s .config file, the behavior of both these configurations must be specified in the same file.

The clients of an authentication service and the Report Server must share the cookie created on login.

  • In WinForms, this is provided by a FormsAuthenticationEndpointBehavior.
  • On the web, the behavior is specified in an application’s .config file, by adding the following lines to its \ section.

Implements

IAuthenticationServiceClient

Inheritance

Object DevExpress.Data.Utils.ServiceModel.ServiceClientBase AuthenticationServiceClient

See Also

AuthenticationServiceClient Members

AuthenticationServiceClientFactory

IAuthenticationService

IAuthenticationServiceAsync

IAuthenticationServiceClient

DevExpress.ReportServer.ServiceModel.Client Namespace