Skip to content

Commit 00c4655

Browse files
committed
Add more details to unauthorized service error view
1 parent ea31d09 commit 00c4655

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/main/resources/templates/casServiceErrorView.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@
2727
<h2 th:utext="#{screen.service.error.heading}"></h2>
2828
<p th:if="${rootCauseException != null and rootCauseException.code != null}" th:utext="#{${rootCauseException.code}}"></p>
2929
</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>
3037
<section class="form-button" th:with="loginUrl=@{${@casServerLoginUrl}(casRedirectSource=cas)}">
3138
<a class="mdc-button mdc-button--raised button-osf-blue" th:href="@{/logout(service=${loginUrl})}">
3239
<span class="mdc-button__label" th:utext="#{screen.error.page.loginagain}"></span>
@@ -41,6 +48,7 @@ <h2 th:utext="#{screen.service.error.heading}"></h2>
4148

4249
<script type="text/javascript">
4350
disableSignUpButton();
51+
document.getElementById("initiatorUrl").innerHTML = "Request URL: " + window.location.href;
4452
</script>
4553

4654
</div>

0 commit comments

Comments
 (0)