IdP 5 - login page not displaying service name if no mdui:DisplayName present in metadata.
Lipscomb, Gary
glipscomb at csu.edu.au
Fri Nov 29 01:45:31 UTC 2024
Hi List,
environment
RHEL 8
IdP version 5.1.3
Tomcat 10.1.25
openJDK 17.0.2
We are currently undergoing intensive testing against all our SP's and have found that any SP that doesn't have mdui:DispayName specified in their metadata does not get the "Login to" section displayed on the login page. It is not falling back to using the entityID and mentioned here https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3199510915/RpUIContext#$rpUIContext.serviceName
Testing was done with our custom login.vm and also the default login.vm as supplied.
This is the section of code doesn't appear to be working
<header>
<img class="main-logo" src="$request.getContextPath()#springMessageText("idp.logo", "/images/placeholder-logo.png")" alt="#springMessageText("idp.logo.alt-text", "logo")" />
#set ($serviceName = $rpUIContext.serviceName)
#if ($serviceName && !$rpContext.getRelyingPartyId().contains($serviceName))
<h1>#springMessageText("idp.login.loginTo", "Login to") $encoder.encodeForHTML($serviceName)</h1>
#end
</header>
If the mdui:DisplayName is defined it works as expected.
regards
Gary
Gary Lipscomb
Technical Officer, Systems
IT Infrastructure & Security | Division of Information Technology
[Charles Sturt]<https://www.csu.edu.au>
________________________________
LEGAL NOTICE
This email (including correspondence comprising an email chain and any attachment) is confidential and is intended for the use of the addressee(s) only. If you are not the intended recipient of this email, you must not copy, distribute, take any action in reliance on it or disclose it to anyone.
Any confidentiality is not waived or lost by reason of mistaken delivery. Any email should be checked for viruses and defects before opening. Charles Sturt University does not accept liability for viruses or any consequence which arise as a result of this email transmission. Email communications with Charles Sturt University may be subject to automated email filtering, which could result in the delay or deletion of a legitimate email before it is read at Charles Sturt University. The views expressed in this email are not necessarily those of Charles Sturt University.
Charles Sturt University in Australia<https://www.csu.edu.au> The Grange Chancellery, Panorama Avenue, Bathurst NSW Australia 2795 (ABN: 83 878 708 551). Charles Sturt University - TEQSA Provider Identification: PRV12018 (Australian University). CRICOS Provider: 00005F.
Consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20241129/29081d50/attachment.htm>
More information about the users
mailing list