Get access to Organization element on login page?

Lukas Hämmerle lukas.haemmerle at switch.ch
Fri Jan 4 10:52:58 EST 2013


On 04.01.13 15:55, Rod Widdowson wrote:
>> Is it currentlz somehow possible to get access to the <Organization>
>> elements of the current relying party, like OrganizationDisplayName,
>> OrganizationURL etc. on the IdP login.jsp/uApprove consent page via
>> taglib 
> 
> Not via the taglib (but I'd be happy to see a RFI ...)

Do you mean a feature request with RFI :-) ?


> (and the ACS under certain circumstances).  My memory of when that went
> together was that there was "confusion" as to what the precise semantics of
> these legacy names were and modulo that and a use case we decided to not do
> anything..

Maybe the confusion was related to the IdP metadata where the
OrganizationDisplayName in many cases could be used instead of the
MDUI:DisplayName. However, in the context of uApprove we deal with SP
metadata where the Organization has a different meaning than the
MDUI:DisplayName


> There is just the usual possibility of navigating the datastructures
> yourself (in jsp).  You *must* however bear in mind where you move from a
> supported API (which won't change short of 3.0) and an unsupported one
> (which might).  

Ok, I assume this then would boil down to something like:

> <%@ page import="edu.internet2.middleware.shibboleth.idp.util.HttpServletHelper" %>
> <%@ page import="org.opensaml.util.storage.StorageService" %>
> <%@ page import="edu.internet2.middleware.shibboleth.idp.authn.LoginContext" %>
> <%@ page import="edu.internet2.middleware.shibboleth.common.relyingparty.RelyingPartyConfigurationManager" %>
> <%@ page import="org.opensaml.saml2.metadata.EntityDescriptor" %>
> <%
>    StorageService storageService = HttpServletHelper.getStorageService(application);
>    LoginContext loginContext = HttpServletHelper.getLoginContext(storageService,application, request);
>    RelyingPartyConfigurationManager rpConfigMngr = HttpServletHelper.getRelyingPartyConfigurationManager(application);
>    EntityDescriptor metadata = HttpServletHelper.getRelyingPartyMetadata(loginContext.getRelyingPartyId(), rpConfigMngr);
> %>
>
> Service operated by:
> <%= metadata.getOrganization().getDisplayNames().get(0).getName().getLocalString() %>

This indeed works but I guess I'm still adding a feature request for the
sake of simplicity ;-)


Best Regards
Lukas


-- 
SWITCH
Serving Swiss Universities
--------------------------
Lukas Hämmerle, Central Solutions
Werdstrasse 2, P.O. Box, 8021 Zurich, Switzerland
phone +41 44 268 15 05, direct +41 44 268 15 64
lukas.haemmerle at switch.ch, http://www.switch.ch


More information about the dev mailing list