logout.vm

Joshua Brodie josbrodie at gmail.com
Thu Nov 8 15:59:10 EST 2018


The logs did not seem to appear for the logout page. I have experimented
with a number of option (code at tail end of email).

It seems to work on the login page:

In Metadata:  <mdui:DisplayName xml:lang="en">Name Here</mdui:DisplayName>

On Login page logs ----
- Found name in UIInfo, language 'en'
- Returning name from UIInfo 'NAME HERE'
- No UIInfo or InformationURLs returning null
- No UIInfo or PrivacyStatementURLs returning null

if ($serviceName && !$rpContext.getRelyingPartyId().contains($serviceName))

  <p class="SvcName">

    #springMessageText("idp.login.landing.label", "Service")
$encoder.encodeForHTML($serviceName)

</p>




For logout.vm, I have been experimenting beyond the out of the box. No
success so far (only the entityID appears not the value in mdui:DisplayName).
This is not Spring related (which I am learning and a newbie), but I am
stumped on what I have missed for the velocity. Any guidance will be very
much appreciated. Thanks.



#foreach ($sp in $logoutContext.getSessionMap().keySet())

                    #set ($rpCtx =
$multiRPContext.getRelyingPartyContextById($sp))

                    #if ($rpCtx)

                      #set ($rpUIContext =
$rpCtx.getSubcontext("net.shibboleth.idp.ui.context.RelyingPartyUIContext"))

                      #set ($serviceName = $rpUIContext.serviceName)

                    #end

                    #if ($rpUIContext and $rpUIContext.getServiceName())


<li>$encoder.encodeForHTML($rpUIContext.getServiceName())</li>

                    #else

                      <li>$encoder.encodeForHTML($sp)</li>

                      <li>$encoder.encodeForHTML($serviceName)</li>

                    #end

                #end


On Thu, 8 Nov 2018 at 03:22, Rod Widdowson <rdw at steadingsoftware.com> wrote:

> > Where could I troubleshoot on why '#if ($rpUIContext and
> $rpUIContext.getServiceName())' is not entered?
>
> I'd change the logging for net.shibboleth.idp.ui.context to DEBUG (or even
> TRACE) and see what it says.
>
> /Rod
>
> --
> For Consortium Member technical support, see
> https://wiki.shibboleth.net/confluence/x/coFAAg
> To unsubscribe from this list send an email to
> users-unsubscribe at shibboleth.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20181108/f1bd6ad8/attachment.html>


More information about the users mailing list