title: Asp.Net WebApi Core 2.0 Identity With JWTBearer Without cookies
body: <p>I'm building Web service using ASP.Net Core WebApi. I would like to use Identity and also JWTBearer authentication. My code in ConfigureService method of Startup class id:</p>
  
  <pre><code>services.AddIdentity&lt;User, Role&gt;()
        .AddDefaultTokenProviders();
  
    //JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Clear();
  
    services.AddAuthentication(options =&gt;
    {
      options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;
    })
    .AddJwtBearer(options =&gt;
    {
      options.RequireHttpsMetadata = false;
      options.SaveToken = true;
      options.Audience = Configuration.GetSection("JwtIssuer").Value;
      options.ClaimsIssuer = Configuration.GetSection("JwtIssuer").Value;
      options.TokenValidationParameters = new TokenValidationParameters
      {
        ValidateIssuer = true,
        ValidateAudience = true,
        ValidateLifetime = true,
        ValidateIssuerSigningKey = true,
        ValidIssuer = Configuration["JwtIssuer"],
        ValidAudience = Configuration["JwtIssuer"],
        IssuerSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(Configuration["JwtKey"]))
      };
    });
  </code></pre>
  
  <p>Configure method of Startup class contains:</p>
  
  <pre><code>if (env.IsDevelopment())
  {
      app.UseDeveloperExceptionPage();
  }
  app.UseAuthentication();
  app.UseMvc();
  </code></pre>
  
  <p>My problem is that when I call <code>signInManager.PasswordSignInAsync</code> it include cookie with authentication token to response. But i Would like only to use JwtBearer in header. Is there any option how to disable cookies for <code>SignInManager</code>?</p>