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.v24.2.Web.dll
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.
Related GitHub Examples
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.