Hi Mark,

You've configured the AuthenticationFilter with the CAS login URL (to which it 
redirects users) and the server name (so that it knows what server it is itself 
filtering requests for, so that it can compose appropriate "service" parameters 
for the CAS login URLs to which it redirects users).  That part looks fine.

But the AuthenticationFilter isn't the bit trying to validate tickets.  The 
AuthenticationFilter just redirects unauthenticated users to CAS login to *get* 
a ticket.  Another component, almost always a ValidationFilter, validates the 
ticket.  So there should be another <filter> element in your web.xml file, 
declaring a ValidationFilter.

Maybe there's something wrong with that filter's configuration?

Kind regards,

Andrew



On Feb 16, 2012, at 5:14 PM, Mark wrote:

> Hi,
> 
> I just want to say that CAS is fantastic, thanks very much! Its really made 
> my life easier.
> 
> I'm trying to use a simplified version of CAS for my team's development 
> environment where we can put in a dummy values for login, so I set:
> 
> p:cookieSecure="false"
> 
> in the ticketGrantingTicketCookieGenerator file, and set my server params to 
> localhost:8080:
> 
>       <filter>
>               <filter-name>CAS Authentication Filter</filter-name>
>               
> <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
>               <init-param>
>               <param-name>casServerLoginUrl</param-name>
>                   <param-value>http://localhost:8080/cas/login</param-value>
>               </init-param>
>               <init-param>
>               <param-name>serverName</param-name>
>                       <param-value>http://localhost:8080</param-value>
>               </init-param>
>       </filter>
> 
> but I'm getting the following error:
> 
> org.jasig.cas.client.validation.TicketValidationException: CAS Server could 
> not validate ticket.
> 
> When I look at the console, the server response looks like the login page 
> itself!
> 
> I'm guessing there is something else I need to configure to make this work in 
> a development environment, can anyone help me?
> 
> Thank you,
> 
> Mark
> -- 
> 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