title: AspNetCore 2.0 Claims always empty
body: <p>I am working on converting a DotNet 4.5 MVC/WebAPI application to AspNetCore 2.0, and I'm having some trouble getting my Cookie authentication working again. When I set the cookie and try to access a secure method, I can't get there. When I go into an anonymous method and inspect the user object, it is empty - no authentication type, no claims, etc.</p>
  
  <p>I have followed this article as best I can: <a href="https://docs.microsoft.com/en-us/aspnet/core/security/authentication/cookie?tabs=aspnetcore2x" rel="noreferrer">https://docs.microsoft.com/en-us/aspnet/core/security/authentication/cookie?tabs=aspnetcore2x</a>. I am not using Identity. </p>
  
  <p>My code in startup.cs ConfigureServices is as follows: </p>
  
  <pre><code>  services.AddAuthentication("ACE_AUTH")                    
                      .AddCookie("ACE_AUTH",  options =&gt;
                      {
                          options.AccessDeniedPath = "/Home/Index/";
                          options.LoginPath = "/Home/Index/";
                      });
  </code></pre>
  
  <p>My code in the Configure method: </p>
  
  <pre><code>app.UseAuthentication();
  </code></pre>
  
  <p>The Principal is fully populated when this is called. Where I am setting my cookie: </p>
  
  <pre><code> await HttpContext.SignInAsync("ACE_AUTH", samlData.Principal);
  </code></pre>
  
  <p>Nothing I have tried has caused my claims to show up when attempting to Authenticate the user.</p>