not able to find ScriptedAttribute block
Pablo Vidaurri
psvidaurri at gmail.com
Fri Apr 10 08:45:23 EDT 2020
So, yes I was using InputDataConnector as a ref for one of my
AttributeDefinitions:
<AttributeDefinition id="foo" xsi:type="Simple">
<InputDataConnector ref="setFoo" attributeNames="foo"/>
<AttributeEncoder xsi:type="SAML1String"
name="urn:mace:dir:attribute-def:foo" />
<AttributeEncoder xsi:type="SAML2String" name="urn:oid:2.5.4.3"
friendlyName="foo" />
</AttributeDefinition>
That reference was then calling CDATA to create the custom attr value:
<AttributeDefinition id="setFoo" xsi:type="ScriptedAttribute"
dependencyOnly="true">
<InputDataConnector ref="mySource" attributeNames="uid cn"/>
<Script><![CDATA[
//some logic
]]></Script>
</AttributeDefinition>
That worked. But then I created a 2nd set of AttributeDefinitions but
instead of foo I was using bar with different logic in the CDATA. I guess
even though InputDataConnector worked for 1 instance, it did not work for
two instances.
I had to set my boo reference to use InputAttributeDefinition instead of
InputDataConnector:
<AttributeDefinition id="boo" xsi:type="Simple">
<InputAttributeDefinition ref="setBoo" />
<AttributeEncoder xsi:type="SAML1String"
name="urn:mace:dir:attribute-def:boo" />
<AttributeEncoder xsi:type="SAML2String" name="username"
friendlyName="boo" />
</AttributeDefinition>
I also went back and updated foo reference to also use
InputAttributeDefinition.
All good now.
On Fri, Apr 10, 2020 at 1:04 AM Peter Schober <peter.schober at univie.ac.at>
wrote:
> * Mak, Steve <makst at upenn.edu> [2020-04-10 01:29]:
> > AttrDef of type ScriptedAttribute is not usable for
> > "InputDataConnector", it is for "InputAttributeDefinition"
>
> Ah, you're saying the OP is incorrectly referencing his
> AttributeDefinition (of type ScriptedAttribute, but that seems
> immaterial here) as an InputDataConnector from another
> AttributeDefinition (it's not a DataConnector) instead of correctly
> referencing it with an InputAttributeDefinition?
>
> -peter
> --
> For Consortium Member technical support, see
> https://wiki.shibboleth.net/confluence/x/coFAAg
> 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/20200410/5ad7c3e6/attachment.html>
More information about the users
mailing list