Bug with windows authentication and hosted in windows Service?

Dec 1, 2011 at 10:16 PM

I am hosting CassiniDev in my windows service running an MVC 3.0 configuration site for my service.

I have the web.config setup to use windows authentication.  When I look at the HttpContext.User in the web site, it shows the identity that the service is running under, not the itentity of the user making the request.  The User.AuthenticationType is NTLM, which is correct, BTW.

This seems pretty clearly to be a bug, but wanted to run it by the community to see if there is some configuration I am missing.

It seems like it might be a variation on this issue posted to SO last week:


Any ideas? I will create an issue in the Issue Tracker if this is indeed a bug.


Jul 14, 2012 at 6:56 PM

if this is still an issue, a test case would indeed be welcome.

Jul 16, 2012 at 11:37 PM

My SO post lays out the bug (as well as a the other posts):


Basically, you're getting the host SID instead of the identity the browser is sending in.


Aug 12, 2012 at 6:11 AM

David, I think I have resolved this issue in the source. If you could build latest and confirm?