|
| 1 | +<!DOCTYPE html> |
| 2 | +<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layoutosf}"> |
| 3 | + |
| 4 | +<head> |
| 5 | + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 6 | + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> |
| 7 | + |
| 8 | + <title th:text="#{screen.pac4j.error.title}">Pac4j Stop Webflow View</title> |
| 9 | + <link href="../../static/css/cas.css" rel="stylesheet" th:remove="tag" /> |
| 10 | +</head> |
| 11 | + |
| 12 | +<body class="mdc-typography"> |
| 13 | +<div layout:fragment="content" class="d-flex justify-content-center"> |
| 14 | + |
| 15 | + <div class="d-flex justify-content-center flex-md-row flex-column mdc-card mdc-card-content w-lg-30"> |
| 16 | + <section class="login-error-card"> |
| 17 | + <section> |
| 18 | + <div th:replace="fragments/osfbannerui :: osfBannerUI"> |
| 19 | + <a href="fragments/osfbannerui.html"></a> |
| 20 | + </div> |
| 21 | + </section> |
| 22 | + <section class="text-without-mdi text-center text-bold text-large margin-large-vertical title-danger"> |
| 23 | + <span th:utext="#{screen.authnerror.tips}"></span> |
| 24 | + </section> |
| 25 | + <hr class="my-4" /> |
| 26 | + <section class="card-message"> |
| 27 | + <h2 th:utext="#{screen.pac4j.error.heading}"></h2> |
| 28 | + <p th:utext="#{screen.pac4j.error.message}"></p> |
| 29 | + </section> |
| 30 | + <section id="errorInfo" class="pre-formatted-small word-break-all"> |
| 31 | + <pre id="initiatorUrl"></pre> |
| 32 | + <pre th:if="${rootCauseException}" th:text="${'Error: ' + rootCauseException.getClass().getSimpleName()}"></pre> |
| 33 | + <pre th:if="${rootCauseException}" th:text="${'Message: ' + rootCauseException.getMessage()}"></pre> |
| 34 | + <pre th:if="${service}" th:text="${'Service: ' + service}"></pre> |
| 35 | + <pre th:utext="${'Timestamp: ' + #dates.formatISO(#dates.createNow())}"></pre> |
| 36 | + </section> |
| 37 | + <section class="form-button" th:with="loginUrl=@{${@casServerLoginUrl}(casRedirectSource=cas)}"> |
| 38 | + <a class="mdc-button mdc-button--raised button-osf-blue" th:href="@{/logout(service=${loginUrl})}"> |
| 39 | + <span class="mdc-button__label" th:utext="#{screen.error.page.loginagain}"></span> |
| 40 | + </a> |
| 41 | + </section> |
| 42 | + <hr class="my-4" /> |
| 43 | + <section class="text-with-mdi"> |
| 44 | + <span><a th:href="@{/logout(service=${osfUrl.logout})}" th:utext="#{screen.authnerror.button.backtoosf}"></a></span> |
| 45 | + </section> |
| 46 | + </section> |
| 47 | + </div> |
| 48 | + |
| 49 | + <script type="text/javascript"> |
| 50 | + disableSignUpButton(); |
| 51 | + document.getElementById("initiatorUrl").innerHTML = "Request URL: " + window.location.href; |
| 52 | + </script> |
| 53 | + |
| 54 | +</div> |
| 55 | +</body> |
| 56 | + |
| 57 | +</html> |
0 commit comments