openidlogin.jsp 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <%@ taglib prefix='c' uri='http://java.sun.com/jsp/jstl/core' %>
  2. <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
  3. <?xml version="1.0" encoding="utf-8"?>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head>
  7. <title>OpenID Login</title>
  8. <!-- Simple OpenID Selector -->
  9. <link rel="stylesheet" href="<c:url value='/css/openid.css'/>" />
  10. <script type="text/javascript" src="<c:url value='/js/jquery-3.5.1.min.js'/>"></script>
  11. <script type="text/javascript" src="<c:url value='/js/openid-jquery.js'/>"></script>
  12. <script type="text/javascript">
  13. $(document).ready(function() {
  14. openid.init('openid_identifier');
  15. // openid.setDemoMode(true); Stops form submission for client javascript-only test purposes
  16. });
  17. </script>
  18. <!-- /Simple OpenID Selector -->
  19. <style type="text/css">
  20. /* Basic page formatting. */
  21. body {
  22. font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;
  23. }
  24. </style>
  25. </head>
  26. <body>
  27. <p><strong>
  28. NOTE: The OpenID 1.0 and 2.0 protocols have been deprecated and users are
  29. <a href="https://openid.net/specs/openid-connect-migration-1_0.html">encouraged to migrate</a>
  30. to <a href="https://openid.net/connect/">OpenID Connect</a>, which is supported by <code>spring-security-oauth2</code>.
  31. </strong></p>
  32. <c:if test="${not empty param.login_error}">
  33. <font color="red">
  34. Your login attempt was not successful, try again.<br/><br/>
  35. Reason: <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}"/>.
  36. </font>
  37. </c:if>
  38. <!-- Simple OpenID Selector -->
  39. <form:form action="login/openid" method="post" id="openid_form">
  40. <input type="hidden" name="action" value="verify" />
  41. <fieldset>
  42. <legend>Sign-in or Create New Account</legend>
  43. <div id="openid_choice">
  44. <p>Please click your account provider:</p>
  45. <div id="openid_btns"></div>
  46. </div>
  47. <div id="openid_input_area">
  48. <input id="openid_identifier" name="openid_identifier" type="text" value="http://" />
  49. <input id="openid_submit" type="submit" value="Sign-In"/>
  50. </div>
  51. <noscript>
  52. <p>OpenID is a service that allows you to log-on to many different websites using a single identity.
  53. Find out <a href="https://openid.net/what/">more about OpenID</a> and <a href="https://openid.net/get/">how to get an OpenID enabled account</a>.</p>
  54. </noscript>
  55. </fieldset>
  56. </form:form>
  57. <!-- /Simple OpenID Selector -->
  58. </body>
  59. </html>