Setting up IdP3 to release set of attributes only to CAS users

Jonathan Johnson jsjohnson at
Thu Aug 13 23:36:58 EDT 2015

Marvin, can you verify what version of Shibboleth you are using? I remember doing something like this a while back, but when I go to do the same in 3.1.2, the attributes are not returning. I tracked it down to `AttributeRequesterInEntityGroupPolicyRule.getEntityMetadata()` returning null (from the `AttributeFilterContext.requesterMetadataContextLookupStrategy.apply()` returning null).

I’ve tried this in 3.1.1, an instance of 3.1.1 upgraded to 3.1.2, and a stock instance of 3.1.2. I can share my configuration if you think it might help. Thanks.


On August 13, 2015 at 14:58:06, Marvin Addison (marvin.addison at wrote:

We’re setting up IdP3 and want to release a set of attributes to only users that login via CAS. Has anyone done this?

Yes. Scott mentioned in another reply that SAML metadata support is intended for the future, but there's a simple CAS-specific metadata facility called "ServiceRegistry" that allows you to create regular expressions for CAS services and assign them to a metadata group. Following is an example from our institution in conf/cas-protocol.xml:

    <bean id="cas.serviceRegistry"
        <property name="definitions">
                <bean class="net.shibboleth.idp.cas.service.ServiceDefinition"
                      p:authorizedToProxy="false" />
This puts all https services in our institutional domain in a metadata group identified by the URN "" Then you can do a group-based metadata filter in attribute-filter.xml:

  <!-- Hokies release policy -->
  <AttributeFilterPolicy id="releaseToHokies">
    <PolicyRequirementRule xsi:type="saml:InEntityGroup"
    <AttributeRule attributeID="uid">
      <PermitValueRule xsi:type="basic:ANY" />

Please let me know if you have further questions.


To unsubscribe from this list send an email to users-unsubscribe at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list