protected Session getSession(final HttpServerExchange exchange) { return Sessions.getOrCreateSession(exchange); }
protected void storeInitialLocation(final HttpServerExchange exchange) { Session session = Sessions.getOrCreateSession(exchange); session.setAttribute(LOCATION_ATTRIBUTE, RedirectBuilder.redirect(exchange, exchange.getRelativePath())); }
protected Session getSession(final HttpServerExchange exchange) { return Sessions.getOrCreateSession(exchange); }
protected Session getSession(final HttpServerExchange exchange) { return Sessions.getOrCreateSession(exchange); }
@Override protected String changeHttpSessionId(boolean create) { if (create) { Session session = Sessions.getOrCreateSession(exchange); return session.getId(); } else { Session session = Sessions.getSession(exchange); return session != null ? session.getId() : null; } }
protected void storeInitialLocation(final HttpServerExchange exchange) { Session session = Sessions.getOrCreateSession(exchange); session.setAttribute(LOCATION_ATTRIBUTE, RedirectBuilder.redirect(exchange, exchange.getRelativePath())); }
@Override public void saveAccountInfo(OidcKeycloakAccount account) { Session session = Sessions.getOrCreateSession(exchange); session.setAttribute(KeycloakUndertowAccount.class.getName(), account); session.setAttribute(KeycloakSecurityContext.class.getName(), account.getKeycloakSecurityContext()); sessionManagement.login(session.getSessionManager()); }
@Override public void saveAccountInfo(OidcKeycloakAccount account) { Session session = Sessions.getOrCreateSession(exchange); session.setAttribute(KeycloakUndertowAccount.class.getName(), account); session.setAttribute(KeycloakSecurityContext.class.getName(), account.getKeycloakSecurityContext()); sessionManagement.login(session.getSessionManager()); }
@Override protected String changeHttpSessionId(boolean create) { if (create) { Session session = Sessions.getOrCreateSession(exchange); return session.getId(); } else { Session session = Sessions.getSession(exchange); return session != null ? session.getId() : null; } }
protected void storeInitialLocation(final HttpServerExchange exchange) { Session session = Sessions.getOrCreateSession(exchange); session.setAttribute(LOCATION_ATTRIBUTE, RedirectBuilder.redirect(exchange, exchange.getRelativePath())); }