casfailed.jsp 606 B

1234567891011121314151617181920212223242526
  1. <%@ page import="org.springframework.security.core.AuthenticationException" %>
  2. <%@ page import="org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter" %>
  3. <html>
  4. <head>
  5. <title>Login to CAS failed!</title>
  6. </head>
  7. <body>
  8. <h2>Login to CAS failed!</h2>
  9. <font color="red">
  10. Your CAS credentials were rejected.<br/><br/>
  11. Reason:
  12. <%
  13. Exception error = ((AuthenticationException) session.getAttribute(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY));
  14. if(error != null) {
  15. %>
  16. <%= error.getMessage() %>
  17. <%
  18. }
  19. %>
  20. </font>
  21. </body>
  22. </html>