AttributeDefinition - Multiple sourceAttributeID
Joshua Brodie
josbrodie at gmail.com
Wed Mar 25 20:10:09 EDT 2015
Thanks Rod!
Is it possible to have multiple sourceAttributes in the 1
AttributeDefinition (example below)?
I have to build different responses based on attributes returned - I was
thinking of using the 1 AttributeDefinition - the end result will be
marshaled into eduPersonEntitlement.
<resolver:AttributeDefinition id="BLAH" xsi:type="Script"
xmlns="urn:mace:shibboleth:2.0:resolver:ad"
sourceAttributeID1="FOO"
sourceAttributeID1="BAR"
sourceAttributeID1="NUMNUM">
<resolver:Dependency ref="student_repos" />
resolver:AttributeEncoder xsi:type="SAML2String"
xmlns="urn:mace:shibboleth:2.0:attribute:encoder"
name="urn:oid:1.3.6.1.4.1.5923.1.1.1.1"
friendlyName="eduPersonAffiliation" />
<Script>
<![CDATA[
script here
]]>
</Script>
</resolver:AttributeDefinition>
On 25 March 2015 at 08:32, Rod Widdowson <rdw at steadingsoftware.com> wrote:
> > Is it possible to have multiple sourceAttributeID in the
> AttributeDefinition?
>
> If I understand you correctly you need to add the attributes or data
> connectors as dependencies. The attributes will be available to your
> script:
>
>
> https://wiki.shibboleth.net/confluence/display/SHIB2/ResolverScriptAttributeDefinition
>
> > A variable for each attribute produced by the defined dependencies of
> this definition. The variable's
> > name will be that of the ID of the attribute from the dependency. In the
> event that more than one
> > dependency produces attributes with the same ID the values of all of
> those attributes will be merged and
> > made available to the script.
>
> Rod
>
> --
> 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/20150325/e5bf299f/attachment.html
More information about the users
mailing list