Export API security

Hello,

When a datasource is imported a new controller to export excel and csv is generated (if the option is selected).

This controller is not securized by default. Is there a way to securice it using the radzen IDE?

On the other way, this is very very dangerous.

Thanks

Hi @zarroc,

You can secure the export controller by adding a partial class for it and decorating it with the [Authorize] attribute.

Regards,
Atanas Korchev,
the Radzen team

Yes, thank you, i have done it before. But I suggest to add an advice while importing the datasource to notice that it will generate an opened API.

I discovered it because I added swagger to the project.

Kind regards

Or even securize it by default, or applying the same filter than applied in the main view CRUD class