How do you identify authentcated user in WCF?

Posted by RSolberg on Stack Overflow See other posts from Stack Overflow or by RSolberg
Published on 2010-05-19T23:34:11Z Indexed on 2010/05/19 23:40 UTC
Read the original article Hit count: 469

Filed under:
|
|
|

I have a WCF service that will be using basic authentication and would like to be able identify "who" is trying to use the service. I know that the HttpContext.Current is NULL and in the WCF service, but do not know what the alternative is to get the username.

For the website, I can use:

userName = HttpContext.Current.Request.ServerVariables["LOGON_USER"];

How do I get userName in the WCF Service?

© Stack Overflow or respective owner

Related posts about wcf

Related posts about c#