dashboard-devexpress-dot-dashboardweb-dot-dashboardconfigurator-e9277f8d.md
Allows you to verify the trust level used to specify which actions a client can initiate on the server.
Namespace : DevExpress.DashboardWeb
Assembly : DevExpress.Dashboard.v25.2.Web.dll
NuGet Package : DevExpress.Web.Dashboard.Common
public event VerifyClientTrustLevelEventHandler VerifyClientTrustLevel
Public Event VerifyClientTrustLevel As VerifyClientTrustLevelEventHandler
The VerifyClientTrustLevel event's data class is VerifyClientTrustLevelEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| ClientTrustLevel | Gets or sets the trust level that specifies which actions a client can initiate on the server. |
Warning
Initially, the server works at the ClientTrustLevel.Full trust level. Verify the trust level and specify which actions a client can initiate on the server.
You can do one of the following to prevent inadvertent or unauthorized dashboard modifications and protect dashboards stored on a server:
VerifyClientTrustLevel event and set e.ClientTrustLevel to Restricted mode.RestrictedDashboardController (ASP.NET MVC / ASP.NET Core) instead of DashboardController.Restricted mode affects the Web Dashboard in the following manner:
Only dashboards stored in dashboard storage can be processed on the client. Designer mode does not work.
Calling the IEditableDashboardStorage.AddDashboard and IDashboardStorage.SaveDashboard methods leads to an exception.
Information about data sources contained in a dashboard xml definition is not passed to the client when you request a dashboard XML file.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the VerifyClientTrustLevel event.
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.
DashboardUserBasedMVC/CS/MVCDashboard/App_Start/DashboardConfig.cs#L16
DashboardConfigurator.Default.VerifyClientTrustLevel += DashboardConfigurator_VerifyClientTrustLevel;
}
See Also