I just need update userinfo header when user logoin success,but when I execute HttpContext.SignInAsync and DispatchGlobal will 400 error ,In other cases DispatchGlobal is normal.
var claims = new List
{
new Claim(ClaimTypes.Name, "111"),
new Claim(ClaimTypes.Role, "User")
};
var claimsIdentity = new ClaimsIdentity(claims, AppConst.AuthenticationScheme);
await HttpContext.SignInAsync(AppConst.AuthenticationScheme, new ClaimsPrincipal(claimsIdentity));
DispatchGlobal(new UserEvent());
DispatchGlobal will receive 400 error.