On Thu, Oct 11, 2012 at 10:36 AM, Peter Schober <span dir="ltr"><<a href="mailto:peter.schober@univie.ac.at" target="_blank">peter.schober@univie.ac.at</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
* Peter Schober <<a href="mailto:peter.schober@univie.ac.at">peter.schober@univie.ac.at</a>> [2012-10-11 16:29]:<br>
<div class="im">[..]</div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">You could simply rename the AttributeDefinition's id attribute and</div>
fix up the rest of your attribute-resolver.xml (dependencies, I<br>
assume) and your attribute-filter.xml for releasing it based on the<br>
new internal name.<br>
Or change the variable name, if the scriping language employed<br>
supports variable with dashes in them, I don't know.</blockquote><div><br></div><div>I still don't have all the terminology straight, but i think we're expressing the same thing. What I've done is:</div>
<div>a.) change the Scripted Attribute Definition code and ID to match, and changed it such that the variable name is a valid javascript var name</div><div>b.) added the following attribute, using the scripted attribute definition as the sourceattribute and just releasing it under a new name</div>
<div><br></div><div> <resolver:AttributeDefinition id="zonza-groups" xsi:type="ad:Simple"</div><div> xmlns="urn:mace:shibboleth:2.0:resolver:ad"</div><div> sourceAttributeID="zonzagroups"></div>
<div> <resolver:Dependency ref="zonzagroups" /></div><div><br></div><div> <resolver:AttributeEncoder xsi:type="SAML1String" xmlns="urn:mace:shibboleth:2.0:attribute:encoder" name="<a href="http://grey.com/identity/zonza/zonza-groups">http://grey.com/identity/zonza/zonza-groups</a>" /></div>
<div> <resolver:AttributeEncoder xsi:type="SAML2String" xmlns="urn:mace:shibboleth:2.0:attribute:encoder" name="<a href="http://grey.com/identity/zonza/zonza-groups">http://grey.com/identity/zonza/zonza-groups</a>" friendlyName="zonza-groups" /></div>
<div> </resolver:AttributeDefinition></div><div><br></div><div><br></div><div>So, does this make sense or is there a more elegant or efficient way to achieve this ? </div></div>