How to send parameter as encrypyted from telerik angular report viewer to asp.net core rest api ?

1 Answer 208 Views
General Discussions Report Viewer Rest API
Adil
Top achievements
Rank 1
Iron
Veteran
Iron
Adil asked on 28 Jul 2022, 10:19 AM | edited on 28 Jul 2022, 10:21 AM

Hi Telerik

We have report with database connection string is parameter. We are using Angular + Asp.net core rest api and telerik reporting view.

So when i sending my sensitive parameters to trdp i don't want to send clear text data. Instead of this is it possible to send encrypted data to asp.net core rest api and decrypt these parameters then send them to the trdp reports??

there is no any sample to access and change the parameters on rest api layer

Do you have any suggession ? 

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 01 Aug 2022, 08:59 AM

Hello Adil,

You may send the encrypted data through the report parameter, then you have two approaches to choose from about where to decrypt the data:

User functions allow you to extend the default behavior of the Telerik Reporting engine. User functions are public static methods that should always return a value and can take an arbitrary number of input parameters.

You may create a function that takes the encrypted report parameter value and then returns the decrypted value. For example:

= Namespace.Class.UserFunctionName(Parameters.Parameter1.Value)

The data could also instead be decrypted in a custom resolver, and then passed to the report anew.

For more information on how to implement a custom resolver, please see the How to use Custom Report Source Resolver and Custom Report Document Resolver article.

Please let me know if you have any other questions.

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
General Discussions Report Viewer Rest API
Asked by
Adil
Top achievements
Rank 1
Iron
Veteran
Iron
Answers by
Dimitar
Telerik team
Share this question
or