Angular Report Viewer request with HttpInterceptor

1 Answer 65 Views
Report Viewer - Angular Security
Zaw
Top achievements
Rank 1
Veteran
Zaw asked on 05 Aug 2021, 10:06 AM

Hello

I'm trying to add telerik report view in my Angular project. 

I would like to know how can I add Authorization Bearer token in request header of report view API call?

My Angular project use HttpInterceptor to inject Bearer token on every request to API. 

Backend API is .Net core 3.1 . 

Thanks

Zaw Myo Naing

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 10 Aug 2021, 07:17 AM

Hello Zaw,

Please have a look at the How to setup authorization in REST Service controller KB article.

If you have any other questions or need further assistance, please let me know.

Thank you for using Telerik Reporting!

Regards,
Dimitar
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Zaw
Top achievements
Rank 1
Veteran
commented on 10 Aug 2021, 08:09 AM

Hello Dimitar

Is there any reference for how to add authorization token in Angular report viewer?

Thanks

 

 

 

 

Dimitar
Telerik team
commented on 10 Aug 2021, 12:14 PM

Hello Zaw,

Yes, the Angular Report Viewer comes with out-of-the-box support for an authenticationToken option. This option adds an Authorization header for every request to the REST service. For more information, please see How to Pass Custom Headers Along with Report Viewer REST API Calls from Angular Application.

Tags
Report Viewer - Angular Security
Asked by
Zaw
Top achievements
Rank 1
Veteran
Answers by
Dimitar
Telerik team
Share this question
or