Results 1 to 4 of 4

Thread: Why the acegi authenticated only once...

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Posts
    6

    Default Why the acegi authenticated only once...

    I use the acegi and cas ,and I write myself authenticationDao with

    hibernate.

    I implements rabc.Everything is ok!

    but a strange thing comes:

    I use tomcat5.0.28 to test,only the first time when I visit the secured

    url ,the

    application asks me to login in the cas.After authenticated successfully,I

    close the IE,and visit the same

    url ,it need not authenticate.Even when I restart the tomcat,it need not

    authenticate too.Only when I clear the work directory of tomcat and

    restart again,it works!

    why? :x

  2. #2
    Join Date
    Aug 2004
    Location
    Roselle Park, NJ
    Posts
    167

    Default

    I haven't looked at the Acegi code that closely, but I would assume its because the authentication information is still in the session.

    I know that Tomcat 5 attempts to serialize sessions to disk on shutdown and then restore them when its started. I would assume IE is still sending the cookie to the server if your authentication is still valid.

    That's just a guess though.

  3. #3
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Wow, that Tomcat behaviour is sure going to catch some people.... Thanks for the info Scott.

    It's also possible that maybe Acegi Security is forwarding the browser back through to the CAS Server which is reauthenticating the user and sending the ticket back to the Acegi Security secured application. Try switching on debug-level logging to get some more clues as to what is happening, if it is not the Tomcat 5 serialization Scott mentioned.

  4. #4
    Join Date
    Aug 2004
    Location
    Roselle Park, NJ
    Posts
    167

    Default

    if you want to disable session saving, check this out:
    http://jakarta.apache.org/tomcat/tom...g/manager.html

    To enable/disable is one of the options.

Similar Threads

  1. Replies: 8
    Last Post: Mar 19th, 2008, 11:13 AM
  2. Acegi running fine. Howto add roles, ...
    By ThomasBecker in forum Security
    Replies: 9
    Last Post: Sep 16th, 2007, 08:16 AM
  3. Acegi for LDAP
    By vaibhav.gandhi in forum Security
    Replies: 12
    Last Post: Jul 13th, 2005, 12:33 AM
  4. Replies: 1
    Last Post: Jun 24th, 2005, 10:35 PM
  5. Replies: 4
    Last Post: Nov 2nd, 2004, 02:11 PM

Posting Permissions

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