casDuoLoginView.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!DOCTYPE html>
  2. <html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout}">
  3. <head>
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
  6. <title th:text="#{cas.mfa.duologin.pagetitle}">Duo Login View</title>
  7. <script th:src="@{/js/duo/Duo-Web-v2.min.js}"></script>
  8. <link href="../../static/css/cas.css" rel="stylesheet" th:remove="tag" />
  9. </head>
  10. <body>
  11. <main role="main" class="container mt-3 mb-3">
  12. <div layout:fragment="content">
  13. <form method="post" id="duo_form" class="fm-v clearfix" th:object="${credential}" th:action="@{/login}">
  14. <div id="msg" class="alert alert-danger" role="alert" th:if="${#fields.hasErrors('*')}">
  15. <span th:each="err : ${#fields.errors('*')}" th:utext="${err}">this error block and text is only shown if there are errors</span>
  16. </div>
  17. <input type="hidden" name="execution" th:value="${flowExecutionKey}"/>
  18. <input type="hidden" name="_eventId" value="submit"/>
  19. <input type="hidden" name="geolocation"/>
  20. <div id="login">
  21. <iframe id="duo_iframe"
  22. frameborder="0"
  23. th:attr="data-host=${apiHost},data-sig-request=${sigRequest}"
  24. data-post-argument="signedDuoResponse">
  25. </iframe>
  26. <style>
  27. #duo_iframe {
  28. width: 100%;
  29. min-width: 304px;
  30. max-width: 620px;
  31. height: 330px;
  32. border: none;
  33. }
  34. </style>
  35. </div>
  36. </form>
  37. </div>
  38. </main>
  39. </body>
  40. </html>