title: .Net Core IsAuthenticated false even if I use manually HttpContext.SignInAsync
body: <p>I have my app using both cookie and bearer authentication:</p>
  
  <pre><code>var membershipService = configuration.GetValue&lt;string&gt;("MembershipService:BaseUri");
  services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
      .AddCookie()
      .AddJwtBearer(opt =&gt;
      {
          opt.Audience = "gateway";
          opt.Authority = membershipService;
          opt.RequireHttpsMetadata = false;
          opt.SaveToken = true;
          opt.Events = new JwtBearerEvents()
          {
              OnTokenValidated = (context) =&gt;
              {
                  var accessToken = context.SecurityToken as JwtSecurityToken;
                  if (accessToken != null)
                  {
                      ClaimsIdentity identity = context.Principal.Identity as ClaimsIdentity;
                      if (identity != null)
                      {
                          identity.AddClaim(new Claim("access_token", accessToken.RawData));
                      }
                  }
                  return Task.CompletedTask;
              }
          };
  });
  </code></pre>
  
  <p>Everything works fine when I send <code>access_token</code> in headers.</p>
  
  <p>But if I send without token in header on second request (first one with authorization header), it seems that <code>User</code> doesn't know anything about the previous authentication. Even if I do <code>HttpContext.SignInAsync("Cookies", User)</code>, the next request, e.g. after pressing F5, doesn't have the user authenticated.</p>
  
  <p>What am I missing? </p>