generating scoped attributes in ad:Script

Cantor, Scott cantor.2 at osu.edu
Thu Feb 21 20:09:48 EST 2013


On 2/21/13 8:00 PM, "Peter Schober" <peter.schober at univie.ac.at> wrote:

>Is it possible to generate attributes in a type="Script" attribute
>definition other than instantiations of BasicAttribute, e.g. scoped
>attributes?

Should be, I think you just have to create the proper value types, I think.

>I can't just attach SAML2ScopedString encoders to the result of the
>script:
>
>  java.lang.ClassCastException: java.lang.String cannot be cast to
>  
>edu.internet2.middleware.shibboleth.common.attribute.provider.ScopedAttrib
>uteValue

The values added to the object would need to be of that type, but I don't
know the syntax for doing that. Does using "new ScopedAttributeValue()"
and then adding that to the BasicAttribute values collection work?

-- Scott




More information about the users mailing list