Passing HttpContext.Current.User.Identity to WCF
Looking for a little advice (or maybe even a direct answer). I have an MVC3 website. I also have a set of WCF services running (for now everything is on the same box). What I'm trying to do is authenticate the client (that part is working fine), then pass that authenticated user on to various WCF calls. At the moment I've hooked up the Application_AuthenticateRequest() method in Global.Asax , which boils down to creating a new GenericIdentity & GenericPrincipal , then assigning that principal to HttpContext.Current.User : ... GenericIdentity identity = new GenericIdentity(userName);