[JIRA] (IDP-1822) ScopedAttributePredicate

Philip Brusten (Jira) jira at shibboleth.atlassian.net
Tue Nov 9 17:05:41 UTC 2021


Philip Brusten ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=5b87bcb44d21642beb80e004 ) *commented* on IDP-1822 ( https://shibboleth.atlassian.net/browse/IDP-1822?atlOrigin=eyJpIjoiZGY4N2FkNTdlODI3NGIyZTk5ZmQ3NjdmOWM4ZjkzMjMiLCJwIjoiaiJ9 )

Re: ScopedAttributePredicate ( https://shibboleth.atlassian.net/browse/IDP-1822?atlOrigin=eyJpIjoiZGY4N2FkNTdlODI3NGIyZTk5ZmQ3NjdmOWM4ZjkzMjMiLCJwIjoiaiJ9 )

If we would need a predicate for multiple scopes, I would indeed create another bean and add them in an OR-relation.

But it is important to match value at scope together.

<bean id= "student_universityA.com" class= "be.kuleuven.ccis.idp.util.ScopedAttributePredicate" p:useUnfilteredAttributes= "true" >
 <property name= "scope" value= "universityA.com" />
 <property name= "attributeValueMap" >
   <map>
     <entry key= "eduPersonScopedAffiliation" >
       <list>
         <value> student </value>
       </list>
     </entry>
   </map>
 </property>
</bean>
<bean id= "student_alum_universityB.com" class= "be.kuleuven.ccis.idp.util.ScopedAttributePredicate" p:useUnfilteredAttributes= "true" >
 <property name= "scope" value= "universityB.com" />
 <property name= "attributeValueMap" >
   <map>
     <entry key= "eduPersonScopedAffiliation" >
       <list>
         <value> student </value>
         <value> alum </value>
       </list>
     </entry>
   </map>
 </property>
</bean>

<bean id= "shibboleth.context-check.app" parent= "shibboleth.Conditions.OR" >
   <constructor-arg>
     <list>
       <ref bean= "student_universityA.com" />
       <ref bean= "student_alum_universityB.com" />
     </list>
   </constructor-arg>
</bean>

( https://shibboleth.atlassian.net/browse/IDP-1822#add-comment?atlOrigin=eyJpIjoiZGY4N2FkNTdlODI3NGIyZTk5ZmQ3NjdmOWM4ZjkzMjMiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/IDP-1822#add-comment?atlOrigin=eyJpIjoiZGY4N2FkNTdlODI3NGIyZTk5ZmQ3NjdmOWM4ZjkzMjMiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100183- sha1:d14df9b )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20211109/4a758b6d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-a585d033-2220-4d3e-ad54-d058a5f75636
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20211109/4a758b6d/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-c1a0b581-325e-46b7-b48e-342321771298
Type: image/png
Size: 457 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20211109/4a758b6d/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-eebca183-194e-45ad-9650-3f948ec152af
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20211109/4a758b6d/attachment-0005.png>


More information about the commits mailing list