AuthenticationManager references missing

asp.net, asp.net-identity, asp.net-mvc, entity-framework

Solution

How did you define your AuthenticationManager property? Normally it should look like the following:

private IAuthenticationManager AuthenticationManager
{
  get
  {
    return HttpContext.GetOwinContext().Authentication;
  }
}

With that you should be able to call the SignOut and SignIn methods.

Problem

Following up this question, there are missing the references for the methods `SignOut()` and `SignIn()`: ``` private async Task SignInAsync(User user, bool isPersistent) { AuthenticationManager.SignOut(DefaultAuthenticationTypes.ExternalCookie); var identity = await UserManager.CreateIdentityAsync(user, DefaultAuthenticationTypes.ApplicationCookie); AuthenticationManager.SignIn(new AuthenticationProperties() { IsPersistent = isPersistent }, identity); } ``` Do someone knows how to solve it?

Original source