[JIRA] (JOIDC-123) create scope predicate for use in activation conditions

Henri Mikkonen (Jira) jira at shibboleth.atlassian.net
Fri Oct 7 13:08:19 UTC 2022


Henri Mikkonen ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A1614c4a5-c89e-4edc-9421-990bd6ea85fd ) *commented* on JOIDC-123 ( https://shibboleth.atlassian.net/browse/JOIDC-123?atlOrigin=eyJpIjoiZGFlOWIwMzIzNThkNGE5YmEyZWUyOWE5MTIwYjhlZmYiLCJwIjoiaiJ9 )

Re: create scope predicate for use in activation conditions ( https://shibboleth.atlassian.net/browse/JOIDC-123?atlOrigin=eyJpIjoiZGFlOWIwMzIzNThkNGE5YmEyZWUyOWE5MTIwYjhlZmYiLCJwIjoiaiJ9 )

The new abstract bean can be used for instance in the following way. In this example *both* openid and test scope values are required in order to activate the test-attribute.

* Define a global bean:
<bean id="OpenAndTestScopeRequired"
     parent="shibboleth.oidc.Conditions.ValidatedScope"
     c:values="#{{'openid','test'}}" />

* Refer to it in activation conditions, for instance in attribute-resolver:
* 
<AttributeDefinition id="test"
     xsi:type="ScriptedAttribute"
     activationConditionRef="OpenAndTestScopeRequired">
   ...

Liam Hoekenga ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Acb0f0ab4-8d2d-447d-98fa-6250c50c368c ) : does this look what you were asking for?

( https://shibboleth.atlassian.net/browse/JOIDC-123#add-comment?atlOrigin=eyJpIjoiZGFlOWIwMzIzNThkNGE5YmEyZWUyOWE5MTIwYjhlZmYiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/JOIDC-123#add-comment?atlOrigin=eyJpIjoiZGFlOWIwMzIzNThkNGE5YmEyZWUyOWE5MTIwYjhlZmYiLCJwIjoiaiJ9 )

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#100207- sha1:591c2ef )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20221007/c5b003d4/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-c2313b38-ddaa-4a16-8d71-85e969d0c1f9
Type: image/png
Size: 341 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20221007/c5b003d4/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-088c1d0d-335b-4edc-82e3-872333a3eb5b
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20221007/c5b003d4/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-39c5a5f8-dce6-4608-ab88-91dab3b1437d
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20221007/c5b003d4/attachment-0005.png>


More information about the commits mailing list