Skip to main content

ReportDesignerConfigurationBuilder.RegisterDataSourceWizardJsonConnectionStorage<T>() Method

Registers a custom service that stores and provides JSON connections.

Namespace: DevExpress.AspNetCore.Reporting

Assembly: DevExpress.AspNetCore.Reporting.v24.1.dll

NuGet Package: DevExpress.AspNetCore.Reporting


public ReportDesignerConfigurationBuilder RegisterDataSourceWizardJsonConnectionStorage<T>()
    where T : class, IDataSourceWizardJsonConnectionStorage

Type Parameters

Name Description

The type of the class that implements the DevExpress.DataAccess.Web.IDataSourceWizardJsonConnectionStorage interface.


Type Description

A ReportDesignerConfigurationBuilder class instance.


The connection storage receives, stores, and provides JSON connection strings on demand.

The following code in the DevExpress ASP.NET Core Controls Demo registers services at the application startup:

var builder = WebApplication.CreateBuilder(args);

builder.Services.ConfigureReportingServices(configurator => {
    configurator.ConfigureReportDesigner(designerConfigurator => {
    configurator.ConfigureWebDocumentViewer(viewerConfigurator => {

var app = builder.Build();

A user specifies credentials in the JSON Data Wizard to connect to the JSON data source. When the Wizard is finished, credentials are encrypted and saved. A malicious user can specify various credentials and analyze the encrypted result in an attempt to find the cryptographic key. The connection storage prevents a malicious user from accessing the encrypted credentials used in the data source connection string.

See Also