@ DeleteOperation public Map < String , Object > destroySsoSession ( @ Selector final String ticketGrantingTicket ) { val sessionsMap = new HashMap < String , Object > ( 1 ) ; try { this . centralAuthenticationService . destroyTicketGrantingTicket ( ticketGrantingTicket ) ; sessionsMap . put ( STATUS , HttpServletResponse . SC_OK ) ; sessionsMap . put ( TICKET_GRANTING_TICKET , ticketGrantingTicket ) ; } catch ( final Exception e ) { LOGGER . error ( e . getMessage ( ) , e ) ; sessionsMap . put ( STATUS , HttpServletResponse . SC_INTERNAL_SERVER_ERROR ) ; sessionsMap . put ( TICKET_GRANTING_TICKET , ticketGrantingTicket ) ; sessionsMap . put ( "message" , e . getMessage ( ) ) ; } return sessionsMap ; }
Endpoint for destroying a single SSO Session .