Announcement Announcement Module
Collapse
No announcement yet.
spring-security-core plugin ajax login question Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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


    Thanks

    Chris

  • #2
    Hi Chris,

    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.

    Comment

    Working...
    X