I am using the below code for authentication in ASP.NET Core 2.0 using cookies
services .AddAuthentication(CookieAuthenticationDefaults.AuthenticationSch
HttpContext.Authentication is obsolete in ASP.net core 2.0, so instead HttpContext.Authentication.SignInAsync use HttpContext.SignInAsync
HttpContext.Authentication
HttpContext.Authentication.SignInAsync
HttpContext.SignInAsync