Skip to content

DispatchGlobal/Dispatch will 400 error when execute HttpContext.SignInAsync before. #80

Description

@hanxiao123

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions