User session in LOGIN event (#42866)

closes #42867 

Signed-off-by: Ruslan Sheremet <toor.ua@gmail.com>
This commit is contained in:
Ruslan Sheremet 2025-09-24 17:30:51 +03:00 committed by GitHub
parent 5acec7d5fc
commit 5cefc497fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1070,9 +1070,9 @@ public class LoginActionsService {
}
event.detail(Details.CONSENT, Details.CONSENT_VALUE_CONSENT_GRANTED);
event.success();
ClientSessionContext clientSessionCtx = AuthenticationProcessor.attachSession(authSession, null, session, realm, clientConnection, event);
event.success();
return AuthenticationManager.redirectAfterSuccessfulFlow(session, realm, clientSessionCtx.getClientSession().getUserSession(), clientSessionCtx, request, session.getContext().getUri(), clientConnection, event, authSession);
}