Hi Stephen Ii'm experiencing the same issue: after a session timeout (on client's app: spring security + jsf/primefaces) the ajax request are not redirecting to que CAS login page. I've also tried with Omnifaces<https://showcase-omnifaces.rhcloud.com/showcase/exceptionhandlers/FullAjaxExceptionHandler.xhtml> ...
How did you solve this? Thanks, Gil On Friday, February 24, 2012 12:26:15 PM UTC-3, Stephen More wrote: > > Here is a thread on how primefaces can deal with session timeout: > http://forum.primefaces.org/viewtopic.php?f=3&t=14316&start=30#p55248 > > There is a hook to look for a url parameter expired=true. > > How can I configure the java cas-client such that the redirects > include a custom parameter ? > > > On Fri, Feb 24, 2012 at 8:48 AM, Stephen More <[email protected]> > wrote: > > On Wed, Feb 22, 2012 at 12:51 PM, R. van Twisk <[email protected]> wrote: > >> On Feb 22, 2012, at 12:44 PM, Stephen More wrote: > >>> Is anyone currently using CAS to protect AJAX pages written in > primefaces ? > >>> For session timeouts when using non-ajax pages everything redirects > >>> back to login page as designed. > >>> > >>> When a session timeout occurs on an ajax page, a partial page update > >>> is requested, but the user is never redirected back to the login page. > >>> Is there any config that is required to get CAS to play well with an > AJAX page ? > >> > >> I am not a guru on the subject, > >> but CAS doesn't care about Ajax. If your ajax functions properly respond > >> to status codes and headers then you need to do the redirect yourself > >> with you get a access denied. > > > > The ajax GUI components I am using ( primefaces ) is not properly > > responding to error code 302. So I am trying to find a solution. > > > >> CAS, of course doesn't know your client, and doesn't care what call it > is > >> so it cannot do much then deny access and send proper headers. > > > > I guess I should have clearly stated this targeting the java CAS > > client. Is there anything I need to do on the CAS client side to make > > this work. > > > > > > > >>> -Thanks > >>> > >>> -- > >>> 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 > >> > > -- > 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
