Referencing entity attributes in the terms of use key bean

Peter Schober peter.schober at univie.ac.at
Thu Sep 10 15:35:49 UTC 2020


* Wessel, Keith <kwessel at illinois.edu> [2020-09-10 16:50]:
> I know I can do this in the bean as long as it outputs a
> string. What I Can't figure out is how to check for the entity
> attribute inside the bean. Any similar examples of this elsewhere in
> the IdP dist configs or documentation that someone could point me
> to?

Not sure that's what you're asking, from my conf/global.xml:

    <util:map id="shibboleth.CustomViewContext">
        <entry key="RandS">
            <!-- SP belongs to REFEDS Research and Scholarship category -->
            <bean class="org.opensaml.saml.common.profile.logic.EntityAttributesPredicate">
                <constructor-arg>
                    <list>
                        <bean class="org.opensaml.saml.common.profile.logic.EntityAttributesPredicate.Candidate"
                            c:name="http://macedir.org/entity-category"
                            p:values="http://refeds.org/category/research-and-scholarship" />
                    </list>
                </constructor-arg>
            </bean>
        </entry>
    </util:map>

-peter


More information about the users mailing list