I\'m adding some Web API services to an existing MVC application. I have a model binder for my MVC controllers to get the user object stored in a CustomIdentity. I\'m tryi
You can try to use this extension method from System.ServiceModel.dll:
public static IPrincipal GetUserPrincipal(this HttpRequestMessage request);
as:
IPrincipal principal = request.GetUserPrincipal(); IIdentity identity = principal.Identity;