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.v23.2.Web.dll
NuGet Package: DevExpress.Web.Dashboard.Common
Declaration
Property Value
Type | Description |
---|---|
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.
- Add the required connection string to the connectionStrings section in the Web.config file and provide the required connection parameters.
- Create a provider of data connections by implementing the IDataSourceWizardConnectionStringsProvider interface and pass the new provider to the DashboardConfigurator.SetConnectionStringsProvider method.
- Handle the DashboardConfigurator.ConfigureDataConnection event to provide the required connection parameters at runtime.