Skip to content

Commit 408b2ea

Browse files
committed
Update error message and exception page
1 parent b1fb340 commit 408b2ea

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/main/resources/messages.properties

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,10 +708,15 @@ screen.institutionssoattributeparsingfailed.message=\
708708
screen.institutionssoduplicateidentity.message=\
709709
Your request cannot be completed at this time due to an error caused by duplicate SSO identity. \
710710
Please contact <a style="white-space: nowrap" href="mailto:support@osf.io">Support</a> for help.
711-
screen.institutionssoselectivelogindenied.message=\
711+
screen.institutionssoselectivelogindenied.standard.message=\
712712
Your institutional account is unable to authenticate to OSF. Please check with your institution. \
713713
If your institution believes this is in error, \
714714
contact <a style="white-space: nowrap" href="mailto:support@osf.io">Support</a> for help.
715+
screen.institutionssoselectivelogindenied.support.message=\
716+
Your institutional account is unable to authenticate to OSF. \
717+
Please contact <a style="white-space: nowrap" href="mailto:{0}">support at your institution</a> first. \
718+
If your institution believes this is in error, \
719+
contact <a style="white-space: nowrap" href="mailto:support@osf.io">OSF Support</a> for help.
715720
screen.institutionssoosfapifailed.message=\
716721
Your request cannot be completed at this time due to an unexpected error. \
717722
Please <a style="white-space: nowrap" href="{0}">return to OSF</a> and try again later. \

src/main/resources/templates/casInstitutionSsoSelectiveLoginDeniedView.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
<hr class="my-4" />
2626
<section class="card-message">
2727
<h1 th:utext="#{screen.institutionssofailed.heading}"></h1>
28-
<p th:utext="#{screen.institutionssoselectivelogindenied.message}"></p>
28+
<p th:if="${#strings.isEmpty(osfCasSsoErrorContext.institutionSupportEmail)}" th:utext="#{screen.institutionssoselectivelogindenied.standard.message}"></p>
29+
<p th:unless="${#strings.isEmpty(osfCasSsoErrorContext.institutionSupportEmail)}" th:utext="#{screen.institutionssoselectivelogindenied.support.message(${osfCasSsoErrorContext.institutionSupportEmail})}"></p>
2930
</section>
3031
<section class="form-button">
3132
<a class="mdc-button mdc-button--raised button-osf-blue" th:href="@{/logout(service=${osfUrl.logout})}">

0 commit comments

Comments
 (0)