Skip to content

Commit d92cc4d

Browse files
committed
fixed constants for spring 4.2
1 parent b17a7f4 commit d92cc4d

File tree

1 file changed

+3
-3
lines changed
  • openid-connect-server-webapp/src/main/webapp/WEB-INF/views

1 file changed

+3
-3
lines changed

openid-connect-server-webapp/src/main/webapp/WEB-INF/views/approve.jsp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
22
<%@ page import="org.springframework.security.core.AuthenticationException"%>
33
<%@ page import="org.springframework.security.oauth2.common.exceptions.UnapprovedClientAuthenticationException"%>
4-
<%@ page import="org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter"%>
4+
<%@ page import="org.springframework.security.web.WebAttributes"%>
55
<%@ taglib prefix="authz" uri="http://www.springframework.org/security/tags"%>
66
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
77
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
@@ -13,12 +13,12 @@
1313
<o:header title="${title}"/>
1414
<o:topbar pageName="Approve" />
1515
<div class="container main">
16-
<% if (session.getAttribute(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY) != null && !(session.getAttribute(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY) instanceof UnapprovedClientAuthenticationException)) { %>
16+
<% if (session.getAttribute(WebAttributes.AUTHENTICATION_EXCEPTION) != null && !(session.getAttribute(WebAttributes.AUTHENTICATION_EXCEPTION) instanceof UnapprovedClientAuthenticationException)) { %>
1717
<div class="alert-message error">
1818
<a href="#" class="close">&times;</a>
1919

2020
<p><strong><spring:message code="approve.error.not_granted"/></strong>
21-
(<%= ((AuthenticationException) session.getAttribute(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %>)
21+
(<%= ((AuthenticationException) session.getAttribute(WebAttributes.AUTHENTICATION_EXCEPTION)).getMessage() %>)
2222
</p>
2323
</div>
2424
<% } %>

0 commit comments

Comments
 (0)