shibboleth.Conditions.RelyingPartyId regex?

Liam Hoekenga liamr at umich.edu
Fri Dec 2 10:29:57 EST 2016


I checked the release notes (
https://wiki.shibboleth.net/confluence/display/IDP30/ReleaseNotes) and
didn't see anything, but thought I'd ask anyway...

Is this still the best / easiest way to add a regex based
activationCondition to a relying party?

per http://shibboleth.net/pipermail/users/2015-July/022678.html:

global.xml (or similar):
    <bean id="exampleOrgRegex" class="java.util.regex.Pattern"
factory-method="compile" c:_0="^http[s]?://[^/]*\.example\.org.*" />
    <bean id="exampleOrgRegexPredicate"
class="com.google.common.base.Predicates" factory-method="contains"
c:_0-ref="exampleOrgRegex" />
    <bean id="shibboleth.noConsentRelyingPartyPredicate"
class="net.shibboleth.idp.profile.logic.RelyingPartyIdPredicate"
c:pred-ref="exampleOrgRegexPredicate" />

relying-party.xml:
    <bean id="shibboleth.noConsentRelyingParty" parent="RelyingParty">
        <property name="activationCondition"
ref="shibboleth.noConsentRelyingPartyPredicate" />
        <property name="profileConfigurations">
            <list>
                <!-- Your refs or beans here. -->
            </list>
        </property>
    </bean>


thanks!
Liam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20161202/8ff10816/attachment.html>


More information about the users mailing list