This check verifies that current authentication session is consistent with the one specified in token. Examples:
When the check passes, it also sets the authentication session in token context accordingly.
257 if (authSessionCompoundIdFromToken == null) {
262 if (Objects.equals(AuthenticationSessionCompoundId.fromAuthSession(authSessionFromCookie).getEncodedId(), authSessionCompoundIdFromToken)) {
263 context.setAuthenticationSession(authSessionFromCookie,
false);
268 String parentTabId = authSessionFromCookie.getAuthNote(AuthenticationProcessor.FORKED_FROM);
269 if (parentTabId == null) {
274 AuthenticationSessionModel authSessionFromParent = authSessionFromCookie.getParentSession().getAuthenticationSession(authSessionFromCookie.getClient(), parentTabId);
275 if (authSessionFromParent == null) {
282 LOG.debugf(
"Switched to forked tab: %s from: %s . Root session: %s", authSessionFromParent.getTabId(), authSessionFromCookie.getTabId(), authSessionFromCookie.getParentSession().getId());
284 context.setAuthenticationSession(authSessionFromParent,
false);
285 context.setExecutionId(authSessionFromParent.getAuthNote(AuthenticationProcessor.LAST_PROCESSED_EXECUTION));
static final Logger LOG
Definition: LoginActionsServiceChecks.java:47