I have a problem similar to Subject from payload does not match subject from previous authentication however the solution given is not what I want to do.
We are doing something similar to the op of above where we want to immediately accept the login and consent of user. In our case the user has already authenticated (we know from the session cookie) and we just want to set the sso cookie. In my login provider I accept the login without displaying a login page. In my consent provider I accept the consent. I set the remember flag on both login and consent.
Upon the call to accept the login , I am getting intermittently 400 Bad Request response with the error “Subject from the payload does not match subject from the previous authentication” in the hydra log. This problem goes away if I don’t set remember on the login accept payload. However, then I don’t get the sso login cookie, which is the objective.
Hoping someone can provide some help or advice on what could be causing the 400.