diff --git a/server/src/main/webapp/WEB-INF/views/oauth/approve.jsp b/server/src/main/webapp/WEB-INF/views/oauth/approve.jsp index 48230c836..f27f5ac1a 100644 --- a/server/src/main/webapp/WEB-INF/views/oauth/approve.jsp +++ b/server/src/main/webapp/WEB-INF/views/oauth/approve.jsp @@ -1,25 +1,23 @@ <%@ page import="org.springframework.security.core.AuthenticationException" %> -<%@ page import="org.springframework.security.oauth2.provider.verification.BasicUserApprovalFilter" %> -<%@ page import="org.springframework.security.oauth2.provider.verification.VerificationCodeFilter" %> +<%@ page import="org.springframework.security.oauth2.common.exceptions.UnapprovedClientAuthenticationException" %> <%@ page import="org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter" %> <%@ taglib prefix="authz" uri="http://www.springframework.org/security/tags" %> -<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %> -<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> <%@ taglib prefix="o" tagdir="/WEB-INF/tags" %>
- -
- × + <% if (session.getAttribute(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY) != null && !(session.getAttribute(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY) instanceof UnapprovedClientAuthenticationException)) { %> +
+ × -

Access could not be granted. - (<%= ((AuthenticationException) session.getAttribute(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %> - )

-
- +

Access could not be granted. + (<%= ((AuthenticationException) session.getAttribute(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %> + )

+
+ <% } %> @@ -32,18 +30,14 @@

- + action="<%=request.getContextPath()%>/oauth/authorize" method="post"> +
  -
- +