Resolver plugin ' activation criteria not met, nothing to do

McLennan, Neil R n.mclennan at imperial.ac.uk
Mon Jan 8 14:28:16 UTC 2024


I am trying to create an attribute definition with an activation conditions using a regex on another attribute. I have tried the following but the activation condition is never met. What am I doing wrong? Does anybody have an example of how to do this ?



  <AttributeDefinition xsi:type="Simple" id="givenName"  activationConditionRef="ConditionX">
        <InputDataConnector ref="DataCon1"  attributeNames="givenName"/>
    </AttributeDefinition>

With the following bean

<bean id="ConditionX" parent="shibboleth.Conditions.AND">
        <constructor-arg>
             <list>
                 <bean class="net.shibboleth.idp.profile.logic.RegexAttributePredicate"
                         p:useUnfilteredAttributes="true"
                         p:attributeId="userprinciplename"
                         p:pattern=".+" />
             </list>
        </constructor-arg>
    </bean>

But this resulted in "Resolver plugin 'givenName': activation criteria not met, nothing to do"

With further reading I stumbled across PreRequestedAttributes - Identity Provider 4 - Confluence (atlassian.net)<https://shibboleth.atlassian.net/wiki/spaces/IDP4/pages/1277820994/PreRequestedAttributes> so tried

  <AttributeDefinition xsi:type="Simple" id="givenName"  preRequested="true" dependencyOnly="true" activationConditionRef="ConditionX">
        <InputDataConnector ref=" DataCon1" attributeNames="givenName"/>
    </AttributeDefinition>

With the following bean

<bean id="ConditionX" class="net.shibboleth.idp.profile.logic.RegexAttributePredicate"
p:attributeContextLookupStrategy-ref="shibboleth.ChildLookup.PreRequestedAttributeContext"
  p:useUnfilteredAttributes="true"
   p:attributeId="userprinciplename"
      p:pattern=".+" />

This also resulted in "Resolver plugin 'givenName': activation criteria not met, nothing to do"

Neil McLennan
Imperial College London




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20240108/131ac3c4/attachment.htm>


More information about the users mailing list