WebDocumentViewerRemoteSourceSettings.AuthToken Property

Specifies an access token used to obtain documents from the Report and Dashboard Server.

Namespace: DevExpress.XtraReports.Web.WebDocumentViewer

Assembly: DevExpress.XtraReports.v18.1.Web.WebForms.dll

Declaration

public string AuthToken { get; set; }
Public Property AuthToken As String

Property Value

Type Description
String

A String value that specifies an access token.

The ASPxWebDocumentViewer.SettingsRemoteSource property allows you to configure the Web Document Viewer to display documents that are created remotely with the DevExpress Report and Dashboard Server.

This property provides access to the following properties:

  • ServerUri - specifies your Report and Dashboard Server URI.
  • AuthToken - specifies the Bearer token used to access documents on the Server.
@model MyApplication.Models.DocumentViewerModel

@Html.DevExpress().WebDocumentViewer(settings => {
    settings.Name = "WebDocumentViewer";
    settings.SettingsRemoteSource.ServerUri = Model.ServerUri;
    settings.SettingsRemoteSource.AuthToken = Model.AuthToken;
}).Bind(Model.ReportUrl).GetHtml()

See Display Documents from the Report and Dashboard Server for a step-by-step example.