No need for an access denied page.
This commit is contained in:
@@ -1,16 +0,0 @@
|
|||||||
<%@ page import="org.springframework.security.context.SecurityContextHolder" %>
|
|
||||||
<%@ page import="org.springframework.security.Authentication" %>
|
|
||||||
<%@ page import="org.springframework.security.ui.AccessDeniedHandlerImpl" %>
|
|
||||||
|
|
||||||
<h1>Sorry, access is denied</h1>
|
|
||||||
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<%= request.getAttribute(AccessDeniedHandlerImpl.SPRING_SECURITY_ACCESS_DENIED_EXCEPTION_KEY)%>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<% Authentication auth = SecurityContextHolder.getContext().getAuthentication();
|
|
||||||
if (auth != null) { %>
|
|
||||||
Authentication object as a String: <%= auth.toString() %><BR><BR>
|
|
||||||
<% } %>
|
|
||||||
Reference in New Issue
Block a user