index.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <!--
  2. ~ Copyright 2002-2020 the original author or authors.
  3. ~
  4. ~ Licensed under the Apache License, Version 2.0 (the "License");
  5. ~ you may not use this file except in compliance with the License.
  6. ~ You may obtain a copy of the License at
  7. ~
  8. ~ https://www.apache.org/licenses/LICENSE-2.0
  9. ~
  10. ~ Unless required by applicable law or agreed to in writing, software
  11. ~ distributed under the License is distributed on an "AS IS" BASIS,
  12. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. ~ See the License for the specific language governing permissions and
  14. ~ limitations under the License.
  15. -->
  16. <!doctype html>
  17. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org" xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
  18. <head>
  19. <title>Spring Security - SAML 2.0 Login</title>
  20. <meta charset="utf-8" />
  21. </head>
  22. <body>
  23. <div>
  24. <form th:action="@{/logout}" method="post">
  25. <input type="submit" value="Logout" />
  26. </form>
  27. <a href="https://simplesaml-for-spring-saml.cfapps.io/module.php/core/authenticate.php?as=example-userpass&logout">
  28. Log out of SimpleSAMLphp
  29. </a>
  30. </div>
  31. <h1>SAML 2.0 Login with Spring Security</h1>
  32. <div>You are successfully logged in as <span sec:authentication="name"></span></div>
  33. </body>
  34. </html>