In ASP.NET or WCF is it safe to use ServiceSecurityContext.Current.WindowsIdentity.Nameto get the current username that executes the current thread?
I want to ensure that the correct user is impersonated in my WCF Service.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
is probably a better alternative, as I don’t think that
ServiceSecurityContext.Currentis available in ASP.NET.You may also want to consider
if you care about the user instead of the process identity.