AJAX + Login redirects + CAS w/ spring-security-cas plugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

AJAX + Login redirects + CAS w/ spring-security-cas plugin

ChrisGen
I'm creating a grails app that uses CAS SSO.  If the page times out and an AJAX request is then made, the spring-security-cas plugin redirects the AJAX request to the CAS login page (which of course the user can't see).

Does anyone have an elegant way of handling this?  It would be awesome if the spring-security-cas plugin had something like LoginController -> authAjax that's found in the spring-security-core plugin.

Ideally, I'd like all AJAX request to return HTTP 401 (Unauthenticated).  This could then be handled in a reasonable manner by javascript.

Anyone have any nice solutions to this?

Thanks,
Chris Sandefer
Reply | Threaded
Open this post in threaded view
|

Re: AJAX + Login redirects + CAS w/ spring-security-cas plugin

Stonebraker
Has anyone worked out a solution/workaround for this?