index.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. <style>
  22. span, dt {
  23. font-weight: bold;
  24. }
  25. </style>
  26. </head>
  27. <body>
  28. <div>
  29. <form th:action="@{/logout}" method="post">
  30. <input type="submit" value="Logout" />
  31. </form>
  32. <a href="https://simplesaml-for-spring-saml.apps.pcfone.io/module.php/core/authenticate.php?as=example-userpass&logout">
  33. Log out of SimpleSAMLphp
  34. </a>
  35. </div>
  36. <h1>SAML 2.0 Login with Spring Security</h1>
  37. <p>You are successfully logged in as <span sec:authentication="name"></span></p>
  38. <p>You're email address is <span th:text="${emailAddress}"></span></p>
  39. <h2>All Your Attributes</h2>
  40. <dl th:each="userAttribute : ${userAttributes}">
  41. <dt th:text="${userAttribute.key}"></dt>
  42. <dd th:text="${userAttribute.value}"></dd>
  43. </dl>
  44. </body>
  45. </html>