In case it helps anyone else out - I got this working. I didn't realize the proxyGrantingTicketStorage also has to be set on the Cas20ServiceTicketValidator:
<bean name="ticketValidationFilter" class= "org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter" p:serverName="https://dev.vcu.edu" p:proxyReceptorUrl="/proxyCallback" p:proxyGrantingTicketStorage-ref="proxyGrantingTicketStorage" p:ticketValidator-ref="ticketValidator" /> <bean name="ticketValidator" class= "org.jasig.cas.client.validation.Cas20ServiceTicketValidator" p:proxyCallbackUrl="https://dev.vcu.edu/proxyCallback" p:proxyGrantingTicketStorage-ref="proxyGrantingTicketStorage"> <constructor-arg index="0" value="https://dev.vcu.edu:8444/cas" /> </bean> <bean name="proxyGrantingTicketStorage" class="edu.vcu. MyProxyGrantingTicketStorage" /> On Wed, Feb 11, 2015 at 3:36 PM, Adam Causey <[email protected]> wrote: > Is there a correct way to specify a custom proxyGrantingTicketStorage > class in the CAS Spring configuration? I am receiving this statement in > the logs, which I think points to the problem: > > "org.jasig.cas.client.authentication.AttributePrincipalImpl - No > ProxyGrantingTicket was supplied, so no Proxy Ticket can be retrieved." > > When I run through the login after setting the > proxyGrantingTicketStorageClass using the web.xml method I can retrieve a > proxy ticket without issue. > > Here is my Spring configuration of the ticketValidationFilter: > > <bean name="ticketValidationFilter" > > class= > "org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter" > > p:serverName="https://dev.vcu.edu" p:proxyReceptorUrl="/proxyCallback" > > p:proxyGrantingTicketStorage-ref="proxyGrantingTicketStorage"> > > <property name="ticketValidator"> > > <bean class="org.jasig.cas.client.validation.Cas20ServiceTicketValidator" > > p:proxyCallbackUrl="https://dev.vcu.edu/proxyCallback"> > > <constructor-arg index="0" value="https://dev.vcu.edu:8444/cas" /> > > </bean> > > </property> > > </bean> > > <bean name="proxyGrantingTicketStorage" > class="edu.vcu.MyProxyGrantingTicketStorage" > /> > > > I have a special case and need to use the Spring configuration and not the > web.xml config. I have been banging my head against the wall trying to get > this to work, so any help is appreciated. > > thanks, > Adam > -- 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
