I have a standard web form app which is authenticated using IIS's Windows Authentication setting.
As I now need to expose some the data via Web API, I have added an APIController which I can successfully retrieve the required data, however, I need to restrict what is returned based on the identity of the requestor.
The problem is that the this.User.Identity
is coming back empty..
[System.Security.Principal.WindowsIdentity]: {System.Security.Principal.WindowsIdentity}
AuthenticationType: ""
IsAuthenticated: false
Name: ""
I am new to Web API so not sure what I have done wrong / forgotten to do...
FYI - The authentication on the web form app is working perfectly...