I don't see a ProxyGrantingTicketStorage these.  Did you configure one (I
can't remember if it needs to be configured manually in Spring, but I think
it does).

It needs to be injected into the filter and the ticketvalidator IIRC.

Cheers,
Scott


On Mon, Jun 8, 2009 at 9:44 PM, tedzo <[email protected]> wrote:

> Hello,
> When I configure cas filters (3.1.3) via web.xml, I can get authenticated
> and get the proxyticket just fine. However, when I try to inject the filters
> via spring (as per
> http://www.ja-sig.org/wiki/display/CASC/Configuring+the+JA-SIG+CAS+Client+for+Java+using+Spring),
> I can get authenticated, I get the PGTIOU, but when I try to a
> getProxyTicketFor(service), I get a NULL. The Assertion and
> AttributePrincipal both exist. The proxyticket isn't available.
>
> I think I have either misconfigured something in the spring version of the
> proxyticket validator and I am seeing through it (I have been looking at it
> a long time now..). Can someone kindly look at it?
>
> This works (in web.xml)-
>
> <filter>
>   <filter-name>Authentication Filter</filter-name>
>
> <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
>   <init-param>
>     <param-name>casServerLoginUrl</param-name>
>     https://test-bed-1.bling.com:8443/cas/login
>   </init-param>
>   <init-param>
>     <param-name>serverName</param-name>
>     http://test-bed-1.bling.com:8080
>   </init-param>
> </filter>
> <filter-mapping>
>   <filter-name>CAS Authentication Filter</filter-name>
>   <url-pattern>/userManager/*</url-pattern>
> </filter-mapping>
>
> <filter>
>   <filter-name>Cas20ProxyReceivingTicketValidation Filter</filter-name>
>
> <filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class>
>   <init-param>
>     <param-name>casServerUrlPrefix</param-name>
>     https://test-bed-1.bling.com:8443/cas
>   </init-param>
>   <init-param>
>     <param-name>serverName</param-name>
>     http://test-bed-1.bling.com:8080
>   </init-param>
>    <init-param>
>      <param-name>proxyCallbackUrl</param-name>
>      https://test-bed-1.bling.com::8443/userManager/Validator
>    </init-param>
>    <init-param>
>      <param-name>proxyReceptorUrl</param-name>
>      <param-value>/Validator</param-value>
>    </init-param>
>    <init-param>
>      <param-name>acceptAnyProxy</param-name>
>      <param-value>true</param-value>
>    </init-param>
> </filter>
> <filter-mapping>
>   <filter-name>CAS Cas20ProxyReceivingTicketValidation Filter</filter-name>
>   <url-pattern>/userManager/*</url-pattern>
>   <url-pattern>/Validator</url-pattern>
> </filter-mapping>
>
> This Does NOT work-
> <filter>
>     <filter-name>CAS Authentication Filter</filter-name>
>     <filter-class>
>         org.springframework.web.filter.DelegatingFilterProxy
>     </filter-class>
>     <init-param>
>         <param-name>targetBeanName</param-name>
>         <param-value>auth-filter</param-value>
>     </init-param>
> </filter>
> <filter-mapping>
>   <filter-name>CAS Authentication Filter</filter-name>
>   <url-pattern>/userManager/*</url-pattern>
> </filter-mapping>
>
> <filter>
>     <filter-name>CAS Validation Filter</filter-name>
>     <filter-class>
>         org.springframework.web.filter.DelegatingFilterProxy
>     </filter-class>
>     <init-param>
>         <param-name>targetBeanName</param-name>
>         <param-value>validation-filter</param-value>
>     </init-param>
> </filter>
> <filter-mapping>
>   <filter-name>CAS Validation Filter</filter-name>
>   <url-pattern>/userManager/*</url-pattern>
>   <url-pattern>/Validator</url-pattern>
> </filter-mapping>
>
> Bean context file-
>     <bean name="auth-filter"
>         class="org.jasig.cas.client.authentication.AuthenticationFilter"
>         p:casServerLoginUrl="https://test-bed-1.bling.com:8443/cas/login";
>         p:renew="false"
>         p:gateway="false"
>         
> p:serverName="http://test-bed-1.bling.com:8080"/<http://test-bed-1.bling.com:8080%22/>
> >
>
>     <bean name="validation-filter"
>
> class="org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter"
>         p:serverName="http://test-bed-1.bling.com:8080";
>         p:redirectAfterValidation="true"
>         p:proxyReceptorUrl="/Validator">
>         <property name="ticketValidator">
>             <bean
> class="org.jasig.cas.client.validation.Cas20ProxyTicketValidator"
>                p:proxyCallbackUrl="
> https://test-bed-1.bling.com:8443/userManager/Validator";
>            p:acceptAnyProxy="true">
>                https://test-bed-1.bling.com:8443/cas"/>
>             </bean>
>         </property>
>     </bean>
>
> Thanks for your time.
>
> --
> 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
>
>

-- 
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

Reply via email to