mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 17:22:13 +00:00
23 lines
559 B
Plaintext
23 lines
559 B
Plaintext
<%@ page import="org.springframework.security.core.context.SecurityContextHolder" %>
|
|
<%@ page import="org.springframework.security.core.Authentication" %>
|
|
|
|
<html>
|
|
<head>
|
|
<title>Access Denied</title>
|
|
</head>
|
|
|
|
<body>
|
|
<h1>Sorry, access is denied</h1>
|
|
|
|
<p>
|
|
<%= request.getAttribute("SPRING_SECURITY_403_EXCEPTION")%>
|
|
</p>
|
|
<p>
|
|
<% Authentication auth = SecurityContextHolder.getContext().getAuthentication();
|
|
if (auth != null) { %>
|
|
Authentication object as a String: <%= auth.toString() %><br /><br />
|
|
<% } %>
|
|
</p>
|
|
</body>
|
|
</html>
|