startup:services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(options =>{options.LoginPath = new PathString("/Account/Login");options.AccessDeniedPath = new PathString("/Account/AccessDenied");options.Events = new CookieAuthenticationEvents{OnValidatePrincipal = XT_BSP.SSO.Main.Event.LastChangedValidator.ValidateAsync};}); 登陸:HttpContext.SignInAsync(CookieAuthenticationDefaults.AuthenticationScheme, new ClaimsPrincipal(identity)); 用fiddler抓包發(fā)現(xiàn),用獵豹瀏覽器登陸時(shí),會(huì)返回cookie,但是頁(yè)面跳轉(zhuǎn)請(qǐng)求時(shí)候的cookie會(huì)丟失。別的瀏覽器正常,IE11也是正常的。就tmd這貨不走尋常路
.net core 使用cookie進(jìn)行認(rèn)證,獵豹瀏覽器不能登陸
炎炎設(shè)計(jì)
2018-08-13 10:09:38