Back to Devexpress

DashboardConfigurator.PassCredentials Property

dashboard-devexpress-dot-dashboardweb-dot-dashboardconfigurator.md

latest4.2 KB
Original Source

DashboardConfigurator.PassCredentials Property

Gets or sets whether confidential information (such as user credentials) will be passed to the client side (web browser).

Namespace : DevExpress.DashboardWeb

Assembly : DevExpress.Dashboard.v25.2.Web.dll

NuGet Package : DevExpress.Web.Dashboard.Common

Declaration

csharp
public static bool PassCredentials { get; set; }
vb
Public Shared Property PassCredentials As Boolean

Property Value

TypeDescription
Boolean

true , to pass confidential information to the client side; otherwise, false.

|

Remarks

Tip

For information on how to use the DashboardConfigurator‘s API, see the following topic: Server-Side API Overview.

The Web Dashboard allows you to use various types of data sources (for instance, DashboardSqlDataSource or DashboardOlapDataSource) whose connection parameters can contain confidential information such as user credentials. You can set whether this information will be passed to the client side (web browser) using the boolean PassCredentials property. To avoid any security issues, we recommend setting this property to false and providing connection parameters in one of the following ways.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PassCredentials property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

aspnet-mvc-dashboard-data-federation/CS/MVC_DataFederationExample/App_Start/DashboardConfig.cs#L20

csharp
DashboardConfigurator.PassCredentials = true;

aspnet-mvc-dashboard-data-federation/VB/MVC_DataFederationExample/App_Start/DashboardConfig.vb#L24

vb
DashboardConfigurator.PassCredentials = True

See Also

DashboardConfigurator Class

DashboardConfigurator Members

DevExpress.DashboardWeb Namespace