mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-28 23:02:15 +00:00
No need for an access denied page.
This commit is contained in:
parent
8c3cc5c67b
commit
a205f95c19
@ -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>
|
|
||||||
<% } %>
|
|
Loading…
x
Reference in New Issue
Block a user