<div dir="ltr"><div>Thanks Rod!<br><br></div><div>Is it possible to have multiple sourceAttributes in the 1 AttributeDefinition (example below)?<br><br></div><div>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.<br><br><span style="color:rgb(0,0,0);font-family:&quot;Segoe UI&quot;,Helvetica,Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none"><span class=""> </span>&lt;resolver:AttributeDefinition id=&quot;BLAH&quot; xsi:type=&quot;Script&quot; xmlns=&quot;urn:mace:shibboleth:2.0:resolver:ad&quot;<br>                         sourceAttributeID1=&quot;FOO&quot;</span><span style="color:rgb(0,0,0);font-family:&quot;Segoe UI&quot;,Helvetica,Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none"><span style="color:rgb(0,0,0);font-family:&quot;Segoe UI&quot;,Helvetica,Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none"><br>                         sourceAttributeID1=&quot;BAR</span>&quot;<br>                         </span><span style="color:rgb(0,0,0);font-family:&quot;Segoe UI&quot;,Helvetica,Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none"><span style="color:rgb(0,0,0);font-family:&quot;Segoe UI&quot;,Helvetica,Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none"><span style="color:rgb(0,0,0);font-family:&quot;Segoe UI&quot;,Helvetica,Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none">sourceAttributeID1=&quot;NUMNUM</span>&quot;</span>&gt;<br>                    <br>&lt;resolver:Dependency ref=&quot;student_repos&quot; /&gt;</span><br><br>resolver:AttributeEncoder xsi:type=&quot;SAML2String&quot; xmlns=&quot;urn:mace:shibboleth:2.0:attribute:encoder&quot;<br>                    name=&quot;urn:oid:1.3.6.1.4.1.5923.1.1.1.1&quot; friendlyName=&quot;eduPersonAffiliation&quot; /&gt;<br>                                        <br>                    &lt;Script&gt;<br>                        &lt;![CDATA[<br></div>                                          script here<br><div>                                  ]]&gt;<br>                    &lt;/Script&gt;<br>            &lt;/resolver:AttributeDefinition&gt; <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 25 March 2015 at 08:32, Rod Widdowson <span dir="ltr">&lt;<a href="mailto:rdw@steadingsoftware.com" target="_blank">rdw@steadingsoftware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">&gt; Is it possible to have multiple sourceAttributeID in the AttributeDefinition?<br>
<br>
</span>If I understand you correctly you need to add the attributes or data connectors as dependencies.  The attributes will be available to your script:<br>
<br>
<a href="https://wiki.shibboleth.net/confluence/display/SHIB2/ResolverScriptAttributeDefinition" target="_blank">https://wiki.shibboleth.net/confluence/display/SHIB2/ResolverScriptAttributeDefinition</a><br>
<br>
&gt; A variable for each attribute produced by the defined dependencies of this definition. The variable&#39;s<br>
&gt; name will be that of the ID of the attribute from the dependency. In the event that more than one<br>
&gt; dependency produces attributes with the same ID the values of all of those attributes will be merged and<br>
&gt; made available to the script.<br>
<span class="HOEnZb"><font color="#888888"><br>
Rod<br>
<br>
--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
</font></span></blockquote></div><br></div>