Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: CAS logout

  1. #1
    Join Date
    Mar 2005
    Location
    Prague, Czech Republic
    Posts
    34

    Default CAS logout

    I'm evaluating CAS right now and it seems working except one thing. When I logout in one web application I'm still logged in the second web application. I perform logout this way
    1) invalidate session
    2) redirect to CAS logout servlet

    It looks like I'd need to invalidate a session in the second application (but how)? And another thing, I'm not able to find a cookie which should indicate previous login as stated in reference doc on page 39:
    If the
    user presents a session cookie which indicates they've previously logged on, they will not be prompted to
    login again
    Thanks

  2. #2
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

    Default Re: CAS logout

    Quote Originally Posted by garyfisher
    And another thing, I'm not able to find a cookie which should indicate previous login as stated in reference doc on page 39:
    If the
    user presents a session cookie which indicates they've previously logged on, they will not be prompted to
    login again
    Thanks
    This is referring to the login to the CAS server and the ticket-granting cookie which it issues to indicate that a user has already authenticated. The CAS logout should explicitly remove it. You may not see any jsessionid cookies if you're using SSL, for example.

    I think the problem is that, even if you have destroyed the CAS cookie, the second web application will still have a valid cached Acegi authentication token and it will happily continue using that unless you explicitly make a call to invalidate the session there too.

    "Single sign-out" is mentioned in the CAS 3 information but I haven't looked to see how it works.

    Luke.

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

    Default

    There is a lot of discussion on the CAS list about problems with logging out under CAS 2.x. The key problem, IIRC, is notifying all CAS-aware applications that a given user has performed a single sign out.

    Which CAS version are you using? Have you considered these technical issues with logging out?

  4. #4
    Join Date
    Mar 2005
    Location
    Prague, Czech Republic
    Posts
    34

    Default

    I'm using server version 2.0.12. How are the webapps notified? Do I have to implement some special "something" (servlet, controller, whatever..)??

    Thanks, I'll try to search their mail archive

  5. #5
    Join Date
    Sep 2004
    Posts
    12

    Default

    While looking for a solution to the problem of single sign out I ran across the following:

    http://gcx1.mygcx.org/cas/CCCIChanges.html

    They have created a version of CAS which stores all the client apps which have requested authorization, and then notifies each of them on logout so that they can perform any logout actions themselves.

    I looked through their code and it seems pretty straightforward.

    It would be great if we could integrate this option in ACEGI, so that when setting up the cas related beans we could state that we want this behavior supported.
    I'm not really sure what changes this entails, as I don't know the ACEGI source code very well, any pointers would be great.

    Cheers.

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

    Default

    Quote Originally Posted by garyfisher
    I'm using server version 2.0.12. How are the webapps notified? Do I have to implement some special "something" (servlet, controller, whatever..)??

    Thanks, I'll try to search their mail archive
    In CAS 2.0.x, there is no single sign out mechanism. Applications are not notified that the CAS single sign on session has ended. Logging out effectively ends your ability to use single sign on to authenticate to other applications.

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

    Default Re: CAS logout

    Quote Originally Posted by Luke
    "Single sign-out" is mentioned in the CAS 3 information but I haven't looked to see how it works.
    Currently CAS 3 supports a method whereby you can register a service (in the Services list) with a specific callback mechanism to single sign out. This is currently implemented to allow the clients of the CCCI version of CAS 2 to continue functioning without change and still allow us to come up with a CAS 3 single sign out protocol. At this moment in time, there is no "CAS 3 single signout callback" but we can add one. We are still discussing the best way to handle it (we may just adapt the CCCI protocol). If we adopt the protocol, then the callback class would be removed.

    Dmitriy and I are tasked with CAS3 compatibility with Acegi so once we work out the mechanism by which its done, we will be sure to integrate it with Acegi.

  8. #8
    Join Date
    Sep 2004
    Posts
    12

    Default Re: CAS logout

    Quote Originally Posted by Scott Battaglia
    Dmitriy and I are tasked with CAS3 compatibility with Acegi so once we work out the mechanism by which its done, we will be sure to integrate it with Acegi.
    Is there some general timeline for CAS3 and Acegi integration. Do you think it will be months or years?
    Thanks.

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

    Default

    Technically, CAS 3 right now would work with Acegi as long as you don't want any of the new CAS 3 features.

    We're looking at releasing CAS 3 as final in June. I would expect support in Acegi not long after that (especially since once it goes RC none of the protocols will change. I'll know more information as we get closer to the CAS 3 deadline.

  10. #10
    Join Date
    Sep 2004
    Posts
    12

    Default

    Thanks for the info.
    Cheers.

Similar Threads

  1. HOWTO: Acegi Logout
    By dmfrey in forum Security
    Replies: 10
    Last Post: Nov 4th, 2007, 11:46 AM
  2. Replies: 2
    Last Post: Aug 1st, 2005, 04:51 AM
  3. logout method
    By gmansoor in forum Security
    Replies: 6
    Last Post: May 9th, 2005, 07:52 PM
  4. Replies: 1
    Last Post: May 5th, 2005, 09:42 PM
  5. About Logout
    By richardsang2004 in forum Security
    Replies: 1
    Last Post: Jan 14th, 2005, 03:49 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
  •