<%@ page import="org.springframework.security.core.context.SecurityContextHolder" %> <%@ page import="org.springframework.security.core.Authentication" %> <%@ page import="org.springframework.security.core.GrantedAuthority" %> Security Debug Information

Security Debug Information

<% Authentication auth = SecurityContextHolder.getContext().getAuthentication(); if (auth != null) { %>

Authentication object is of type: <%= auth.getClass().getName() %>

Authentication object as a String:

<%= auth.toString() %>

Authentication object holds the following granted authorities:

<% for (GrantedAuthority authority : auth.getAuthorities()) { %> <%= authority %> (getAuthority(): <%= authority.getAuthority() %>)
<% } %>

Success! Your web filters appear to be properly configured!

<% } else { %> Authentication object is null.
This is an error and your Spring Security application will not operate properly until corrected.

<% } %>