Results 1 to 2 of 2

Thread: spring-security-core plugin ajax login question

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Location
    Colorado
    Posts
    26

    Default 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. #2
    Join Date
    Sep 2010
    Posts
    26

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •