Hi
I am currently rewriting an old Silverlight Application in Angular. The original application had some reports which I would like to reuse.
So I added a REST service to my web api by following the instructions in the docs. This seems to be working (http://localhost:[portnumber]/api/reports/formats returns the expected result). I also created a HTML5 viewer (in Angular), and made sure the authorization token is set (I'm using OAuth).
Unfortunately the report doesn't show..
I started to investigate and, as you can see, the network traffic reveals several requests to the report service are triggered. The next to last request appears to contain the contents of the report in html, but in fact this html is just an error page.
While debugging I discovered that the request doing the actual rendering of the report is not authenticated and HttpContext.Current.User is null.
My code to retrieve the report data relies on this user and therefor throws an exception. The authorization header is present and correct but is somehow ignored.
In all other requests to the reportservice the request is authenticated and the current user is correctly filled, just not for this one request doing the rendering.
Do you have any idea what might be causing this?