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:

http://stackoverflow.com/questions/8241320/securityidentifiers-in-cassini-devs-ntlm-authentication

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

D.

Coordinator
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):

http://stackoverflow.com/questions/8349133/incorrect-windows-identity-in-cassini-dev-when-hosted-in-windows-service/8422023#8422023

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

David

Coordinator
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?