I have a WCF RestFul app I started and then went to Web API. Getting clients Windows Identity worked fine with WCF but for the web api version, it just returns the credentials used by whoever launched the server. Is this something that got missed in Self
Hosting?
I've tried on the client to set UseDefaultCredentials using HttpClient (via HttpClientHandler) and by using HttpWebRequest.
Searches don't pop up with others having same problem so probably something I'm doing wrong. I am using VS2 2010 and ASP.Net MVC 4 Web Api.
billjam54
Member
3 Points
14 Posts
Windows Identity always returns credentials used to launch SelfHosted server
Apr 19, 2012 04:21 PM|LINK
I have a WCF RestFul app I started and then went to Web API. Getting clients Windows Identity worked fine with WCF but for the web api version, it just returns the credentials used by whoever launched the server. Is this something that got missed in Self Hosting?
I've tried on the client to set UseDefaultCredentials using HttpClient (via HttpClientHandler) and by using HttpWebRequest.
Searches don't pop up with others having same problem so probably something I'm doing wrong. I am using VS2 2010 and ASP.Net MVC 4 Web Api.
dbaier
Member
264 Points
66 Posts
MVP
Re: Windows Identity always returns credentials used to launch SelfHosted server
Apr 19, 2012 08:29 PM|LINK
How do you try to retrieve the client identity in Web API?
dominick
_____________________________
Dominick Baier - http://www.leastprivilege.com