@Override public void logout() { authenticationService.logout(); }
protected void doLogout(String sessionUUID, HttpServletResponse response) throws IOException, JSONException { try { if (authentication.begin(sessionUUID)) { AuthenticationService authenticationService = AppBeans.get(AuthenticationService.NAME); authenticationService.logout(); } } catch (Throwable e) { log.error("Error processing logout request", e); response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); } } }
@Override public synchronized void logout() { try { authenticationService.logout(); AppContext.setSecurityContext(null); } catch (Exception e) { log.warn("Error on logout", e); } connected = false; try { fireConnectionListeners(); } catch (LoginException e) { log.warn("Error on logout", e); } session = null; }
protected void internalLogout() { if (session != null && session.isAuthenticated()) { authenticationService.logout(); } AppContext.setSecurityContext(null); connected = false; session = null; }
authenticationService.logout();
AppContext.setSecurityContext(new SecurityContext(userSession)); try { authenticationService.logout(); } finally { AppContext.setSecurityContext(null);
if (logoutRequired) { try { authenticationService.logout(); } finally { AppContext.setSecurityContext(null);
@Override public void logout() { backgroundWorker.checkUIAccess(); ClientUserSession session = getSessionInternal(); if (session == null) { throw new IllegalStateException("There is no active session"); } if (!session.isAuthenticated()) { throw new IllegalStateException("Active session is not authenticated"); } if (session.isAuthenticated()) { try { authenticationService.logout(); } catch (NoUserSessionException e) { log.debug("An attempt to perform logout for expired session: {}", session, e); } } publishUserSessionFinishedEvent(session); UserSession previousSession = getSession(); setSessionInternal(null); eventHub.unsubscribe(UserSubstitutedEvent.class); publishDisconnectedEvent(previousSession); fireStateChangeListeners(previousSession, null); }