Is IDP tied to specific spring version?
avalanche333
Matthew.R.Zmuda at td.com
Tue Aug 6 08:01:30 EDT 2013
I also experienced not Exception's being thrown or errors logged.
The Attributes defined in attribute-resolver using SAML2String were simply being ignored when Shibboleth config was loaded.
So at the time SAML Assertion was being built the attributes were never being added.
No, you are using a different version of Spring then me, I was on 3.0.5 you are using 3.2. Perhaps this was identified at a defect in the framework and addressed.
To me the logic in Spring did not make any sense.
Matt Zmuda | IT Solutions Developer
DCTS Online Channels - Authentication and Security - CIP/ESR
From: Brian Reindel [via Shibboleth] [mailto:ml-node+s1660669n7589057h17 at n2.nabble.com]
Sent: Friday, August 02, 2013 8:43 PM
To: Zmuda, Matthew R
Subject: Re: Is IDP tied to specific spring version?
I've successfully upgraded the IdP WAR to use Spring 3.2.x, and I have
not experienced any problems (yet). I have attributes that get passed
that use the SAML2String encoder, and no exceptions are thrown.
Everything appears to be working as it should.
On Tue, Jul 30, 2013 at 8:33 AM, avalanche333 <[hidden email]</user/SendEmail.jtp?type=node&node=7589057&i=0>> wrote:
> For the record in-case there is plans to upgrade shibboleth to Spring 3.0.x
> the issue is
> thatedu.internet2.middleware.shibboleth.common.config.attribute.encoding.SAML2StringAttributeEncoderBeanDefinitionParser
> forces you to set an attribute "name". This name value ultimately gets
> registered in the org.springframework.core.SimpleAliasRegistry - aliasMap.
> However its the base class that actually uses the name so I suppose this
> would impact anything that extends
> edu.internet2.middleware.shibboleth.common.config.attribute.encoding.BaseAttributeEncoderBeanDefinitionParser
> and uses the name attribute.
>
> So at startup when the beans get loaded the AttributeEncoders defined in
> attribute-resolver that use type SAML2String (or anything that extends
> resolver:BaseAttributeEncoderType) with name attribute set would be ignored
> because Spring 3.0 had a change in the way it loads beans to get the name
> set and register it into the aliasMap. Once that name is in the alias map
> there is a check in
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType
> to only load beans with a name that is NOT found in the aliasMap.
>
> Spring 2.5.x does not have an issue because Spring does not add the name to
> the alias map.
>
> The call that triggers all this loading from shibboleth is in:
>
> edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.ShibbolethAttributeResolver.onNewContextCreated(ApplicationContext
> newServiceContext) throws ServiceException
>
> beanNames =
> newServiceContext.getBeanNamesForType(AttributeDefinition.class);
>
>
>
> --
> View this message in context: http://shibboleth.1660669.n2.nabble.com/Is-IDP-tied-to-specific-spring-version-tp7588771p7588896.html
> Sent from the Shibboleth - Users mailing list archive at Nabble.com.
> --
> To unsubscribe from this list send an email to [hidden email]</user/SendEmail.jtp?type=node&node=7589057&i=1>
--
To unsubscribe from this list send an email to [hidden email]</user/SendEmail.jtp?type=node&node=7589057&i=2>
________________________________
If you reply to this email, your message will be added to the discussion below:
http://shibboleth.1660669.n2.nabble.com/Is-IDP-tied-to-specific-spring-version-tp7588771p7589057.html
To unsubscribe from Is IDP tied to specific spring version?, click here<http://shibboleth.1660669.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7588771&code=TWF0dGhldy5SLlptdWRhQHRkLmNvbXw3NTg4NzcxfDEzMzE1MTYwODQ=>.
NAML<http://shibboleth.1660669.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
NOTICE: Confidential message which may be privileged. Unauthorized use/disclosure prohibited. If received in error, please go to www.td.com/legal for instructions.
AVIS : Message confidentiel dont le contenu peut être privilégié. Utilisation/divulgation interdites sans permission. Si reçu par erreur, prière d'aller au www.td.com/francais/avis_juridique pour des instructions.
--
View this message in context: http://shibboleth.1660669.n2.nabble.com/Is-IDP-tied-to-specific-spring-version-tp7588771p7589118.html
Sent from the Shibboleth - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/users/attachments/20130806/dfdcfdd5/attachment-0001.html
More information about the users
mailing list