Mistakes in the documentation for RpUIContext?

Meike Stone meike.stone at googlemail.com
Fri Jan 25 07:03:03 EST 2019


Hello dear list,

I like to customize my login page via login.vm by using the SP metadata.
For this reason, I use the "rpUIContext" and the documentation under:
https://wiki.shibboleth.net/confluence/display/IDP30/RpUIContext

All attributes, coming from "SAML Metadata UI Specification"
are working well.
If I try to access the standard SAML Metadata attributes (Organization,
contactPerson) only the access to the
Organization attributes (OrganizationName, OrganizationDisplayName,
OrganizationURL) works.

When I use the documentation (
https://wiki.shibboleth.net/confluence/display/IDP30/RpUIContext) and try
to access to the attributes derived from the contactPerson (GivenName,
SurName, EmailAddress) - it doesn't work.


Example from documentation:
#set ($email=$rpUIContext.contactEmail(support))
Contact the websites support team <a
href="$encoder.encodeForHTMLAttribute($email)"/>here</a>

Working Example:
#set ($email=$rpUIContext.getContactEmail('support'))
Contact the websites support team <a
href="$encoder.encodeForHTMLAttribute($email)"/>here</a>

In the documentation are missing the ' .. ' around the contactType (eg.
'support') and the method-name does not work.
After spying in the source code I found, that the methods "getContact*" are
working (see example above).

Here the important part of my metadata, what I used for testing:

.
.
.
         </m:SPSSODescriptor>
        <m:Organization>
          <m:OrganizationName xml:lang="en">HSET</m:OrganizationName>
          <m:OrganizationDisplayName xml:lang="en">High School Example
Town</m:OrganizationDisplayName>
          <m:OrganizationURL xml:lang="en">https://www.hs-exampletown.org
</m:OrganizationURL>
        </m:Organization>
        <m:ContactPerson contactType="technical">
          <m:GivenName>John</m:GivenName>
          <m:SurName>Doe</m:SurName>
          <m:EmailAddress>mailto:John.Doe at hs-exampletown.org
</m:EmailAddress>
        </m:ContactPerson>
</m:EntityDescriptor>

Is this an mistake in the documentation or do I something wrong?

Thanks Meike!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20190125/bd982619/attachment.html>


More information about the users mailing list