<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core' %> <%@ page import="org.springframework.security.core.context.SecurityContextHolder" %> <%@ page import="org.springframework.security.core.Authentication" %> <%@ page import="org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter" %> <%@ page import="org.springframework.security.core.AuthenticationException" %> Exit User

Exit User

Your 'Exit User' attempt was not successful, try again.

Reason: <%= ((AuthenticationException) session.getAttribute(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %>
Current User: <% Authentication auth = SecurityContextHolder.getContext().getAuthentication(); if (auth != null) { %> <%= auth.getPrincipal().toString() %> <% } %>