Hello,
I'm using WebReportDesigner in the React application. One of our key requirements is to use Authentication, because the users from different tenants have different storages, different settings, configuration, etc.
Since the WebReportDesigner does not support Authentication, I've used the approach described here: https://feedback.telerik.com/reporting/1486109-pass-bearer-token-authentication-with-web-report-designer-api-requests
Everything works fine until we use the URI subreport in our report. It fails to render with the error message:
"An error has occurred while processing SubReport 'subReport1':Response status code does not indicate success: 401 (Unauthorized)."
The Report Engine most likely makes internal HTTP call to the "/reports/{reportId}" without authorization HTTP headers, cookies, etc., and that's why the HTTP call could not be authenticated.
I have also tried to override the virtual "IActionResult GetReport(string reportId)" method, but can't find any useful info about the logged-in user.
Btw: we face the very same issue in the WebViewer, which supports authentication (by passing authenticationToken - it's not forwarded when resolving the subreports).
How can we use subreports with our authorized API controllers?
Thank you!
I'm using WebReportDesigner in the React application. One of our key requirements is to use Authentication, because the users from different tenants have different storages, different settings, configuration, etc.
Since the WebReportDesigner does not support Authentication, I've used the approach described here: https://feedback.telerik.com/reporting/1486109-pass-bearer-token-authentication-with-web-report-designer-api-requests
Everything works fine until we use the URI subreport in our report. It fails to render with the error message:
"An error has occurred while processing SubReport 'subReport1':Response status code does not indicate success: 401 (Unauthorized)."
The Report Engine most likely makes internal HTTP call to the "/reports/{reportId}" without authorization HTTP headers, cookies, etc., and that's why the HTTP call could not be authenticated.
I have also tried to override the virtual "IActionResult GetReport(string reportId)" method, but can't find any useful info about the logged-in user.
Btw: we face the very same issue in the WebViewer, which supports authentication (by passing authenticationToken - it's not forwarded when resolving the subreports).
How can we use subreports with our authorized API controllers?
Thank you!