Sep 26th, 2011, 10:15 PM
spring-security-core plugin ajax login question
The documentation says:
if the authentication succeeds:
a redirect to /login/ajaxSuccess occurs (this URL is configurable)
Any way to not redirect and stay on the current page? Is this not recommended?
The reason that I am asking this is that I want ajax login functionality across multiple pages. I assume that I cannot set the URL for every login.
Oct 20th, 2011, 08:25 PM
I haven't used this myself. We pass authentication off to an implementation of CAS, but I found something that may help by trying to get WebFlow working with Ajax.
Try adding '?ajax=true' to the end of your URL. I'm not sure if the latest version of Grails will recognize it or not.
Matt Raible discusses it on his post here: http://java.dzone.com/articles/implementing-ajax
Its worth a shot. My apologies if you've already stumbled across this.