Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Problem between XT-Ajax and acegi when the session timeout

  1. #11
    Join Date
    Apr 2007
    Posts
    10

    Default

    Hi,

    I was curious about my proposed solution so I tried it out.

    Although the implementation is a bit more complicated than I anticipated (one has to decide if the Acegi SavedRequest is an ajax request) it is working well in my environment.
    I attached the source if you are interested.

    And the Acegi securityContext.xml must be modified accordingly:
    <bean id="authenticationProcessingFilter" class="util.XTAjaxAuthenticationProcessingFilter">
    regards,
    Walter
    Attached Files Attached Files
    Last edited by walpod; May 11th, 2007 at 10:22 AM. Reason: add config example

  2. #12
    Join Date
    Jun 2008
    Posts
    1

    Default

    Quote Originally Posted by walpod View Post
    Hi,

    I was curious about my proposed solution so I tried it out.

    Although the implementation is a bit more complicated than I anticipated (one has to decide if the Acegi SavedRequest is an ajax request) it is working well in my environment.
    I attached the source if you are interested.

    And the Acegi securityContext.xml must be modified accordingly:


    regards,
    Walter

    Hi,
    I have the same problem, so I tried your solution, when I do a normal request after the session expires I'm directed to XTAjaxAuthenticationProcessingFilter, but when I do the same with an ajax request it doesn't seem to enter that class, Am I missing something else?

    Thanks,
    Omasu

  3. #13
    Join Date
    Apr 2007
    Posts
    10

    Default

    Quote Originally Posted by Omasu View Post
    Hi,
    I have the same problem, so I tried your solution, when I do a normal request after the session expires I'm directed to XTAjaxAuthenticationProcessingFilter, but when I do the same with an ajax request it doesn't seem to enter that class, Am I missing something else?

    Thanks,
    Omasu
    Hi,

    Did you configure your Ajax request url pattern in Acegi to redirect to your login screen?
    After submitting your login user/password the XTAjaxAuthenticationProcessingFilter should be entered no matter if the original request was an ajax request or not.

    best regards,
    walter

Posting Permissions

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