On all of our reports we have a `CustomerId` and `UserId` that are part of our JWT token, this is what our reports controller looks like
[Route("api/[controller]")]
[Authorize]
[ApiController]
public class ReportsController : ReportsControllerBase
{
public ReportsController(IReportServiceConfiguration reportServiceConfiguration)
: base(reportServiceConfiguration)
{
}
}
So how can we set the CustomerId and UserId on the server side? We call our client side code like this:
$("#reportViewer1")
.telerik_ReportViewer({
serviceUrl: "/api/reports/",
authenticationToken: token,
viewMode: "PRINT_PREVIEW",
reportSource: {
report: fileName + ".trdp",
parameters: postData
},
//sendEmail: { enabled: true },
});
How can we set the token on the server side?