builder.Services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(options =>{ options.ExpireTimeSpan = TimeSpan.FromHours(Constants.LoginTimeoutHours); options.Cookie.IsEssential = true; options.Cookie.HttpOnly = true; options.Cookie.SecurePolicy = CookieSecurePolicy.None; // will make it SSL later options.Cookie.SameSite = SameSiteMode.Strict; options.Cookie.Name = "somename"; options.LoginPath = "/Account/Login"; options.LogoutPath = "/Account/Logout"; options.AccessDeniedPath = "/Home/AccessDenied";});...app.UseAuthentication();app.UseAuthorization();