title: SignInManager.SignInAsync does not work ASP.net MVC Identity
body: <p>I am trying to store User Roles in cookies upon login using Identity "SignInManager.SignInAsync". I'm using the example from here(Section 4): <a href="https://docs.microsoft.com/en-us/aspnet/identity/overview/getting-started/introduction-to-aspnet-identity" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/aspnet/identity/overview/getting-started/introduction-to-aspnet-identity</a>. 
  The error im getting is: <code>*Error CS0305 Using the generic type 'SignInManager&lt;TUser, TKey&gt;' requires 2 type arguments*</code></p>
  
  <p>I tried declaring the Signinmanager with: <code>private readonly SignInManager&lt;ApplicationUser, string&gt; _signInManager;</code></p>
  
  <p>Here is the code:</p>
  
  <pre><code>    // POST: /account/login
      [HttpPost]
      [AllowAnonymous]
      [ValidateAntiForgeryToken]
      public async Task&lt;ActionResult&gt; Login(AccountLoginModel viewModel)
      {
  
          // Ensure we have a valid viewModel to work with
          if (!ModelState.IsValid)
              return View(viewModel);
  
          // Verify if a user exists with the provided identity information
          var user = new ApplicationUser { UserName = viewModel.Email, Email = viewModel.Email };
  
  
          // If a user was found
          if (user != null)
          {
  
              await SignInManager.SignInAsync(user, isPersistent: false, rememberBrowser: false);
  
              // If the user came from a specific page, redirect back to it
              return RedirectToLocal(viewModel.ReturnUrl);
          }
  
          // No existing user was found that matched the given criteria
          ModelState.AddModelError("", "Invalid username or password.");
  
          // If we got this far, something failed, redisplay form
          return View(viewModel);
      }
  </code></pre>
  
  <p>I'm using Microsoft.AspNet.Identity.EntityFramework and Microsoft.AspNet.Identity.Owin</p>