Others can  probably help better here, but if you use CAS Services
Management UI to manage your services, then there is a place where you
select what attribute can be released.  There is an example here:

https://wiki.jasig.org/display/CASUM/End-to-end+Windows+Example#End-to-endWi
ndowsExample-EnabletheClientServicesinServicesManagement

Ignore that it is a "Windows" example as that doesn't impact this part of
the setup.

David Ohsie
Software Architect
EMC Corporation

> -----Original Message-----
> From: Laura McCord [mailto:[email protected]]
> Sent: Thursday, July 11, 2013 1:06 PM
> To: [email protected]
> Cc: Ohsie, David
> Subject: Re: [cas-user] CAS attributes not being released
> 
> Thanks David,
> 
> I'll take a look at it.
> 
> Right now, I have my service registry configured as such, which is what
was
> configured in our past cas release:
> 
> <bean id="serviceRegistryDao"
>          class="org.jasig.cas.services.JpaServiceRegistryDaoImpl"
>          p:entityManagerFactory-ref="entityManagerFactory" />
> 
> <bean id="entityManagerFactory"
> 
> class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBe
> an"
>          p:dataSource-ref="dataSource"
>          p:jpaVendorAdapter-ref="jpaVendorAdapter" > <property
> name="jpaProperties"> <props> <prop
> key="hibernate.dialect">${database.hibernate.dialect}</prop>
> <prop key="hibernate.hbm2ddl.auto">update</prop>
> </props>
> </property>
> </bean>
> 
> <bean id="jpaVendorAdapter"
> 
> class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"
>          p:generateDdl="true"
>          p:showSql="false" />
> 
> -Laura
> 
> On 7/11/13 11:39 AM, Ohsie, David wrote:
> > You also have to configure the service registry to allow attribute
> > release for your services.  Here is an example of a hardcoded
> > registered service entry that I have that allows the attribute calle
> > "USER_ROLES" to be released to any https based service:
> >
> >                  <bean
class="org.jasig.cas.services.RegisteredServiceImpl">
> >                      <property name="id" value="1" />
> >                      <property name="name" value="HTTPS" />
> >                      <property name="description" value="Only Allows
> > HTTPS Urls" />
> >                      <property name="serviceId" value="https://**"; />
> >                      <property name="allowedToProxy" value="true" />
> >                      <property name="allowedAttributes">
> >                          <list>
> >                              <value>USER_ROLES</value>
> >                          </list>
> >                      </property>
> >                  </bean>
> >
> >> -----Original Message-----
> >> From: Laura McCord [mailto:[email protected]]
> >> Sent: Thursday, July 11, 2013 12:26 PM
> >> To: [email protected]
> >> Subject: [cas-user] CAS attributes not being released
> >>
> >> Hi,
> >>
> >> I am noticing that it appears that even though I have set up the
> >> services registry with attributes to be released to various
> >> applications and have configured my attributeRepository in my
> >> deployer file....I still can't
> > seem to
> >> get my attributes to appear. I am using the example cas client as a
> >> basis
> > for
> >> testing:
> >> https://wiki.jasig.org/display/CASC/JA-
> >> SIG+Java+Client+Simple+WebApp+Sample
> >>
> >> Any suggestions?
> >>
> >> I'm testing against cas 3.5.2
> >>
> >> Thanks,
> >>    Laura
> >>
> >>
> >> --
> >> You are currently subscribed to [email protected] as:
> >> [email protected] To unsubscribe, change settings or access
> >> archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to