NUBIC / aker

A flexible security framework for Rack (and Rails) apps. Good for integration with legacy systems, CAS SSO (including proxying), machine and interactive authentication, and much more.
MIT License
1 stars 2 forks source link

Do not force logout from SessionTimer #3

Closed rsutphin closed 13 years ago

rsutphin commented 13 years ago

SessionTimer's current implementation interferes with CAS SSO when there's a timeout. Example scenario:

Applications A and B are protected by the same CAS server, application session timeouts are n, CAS session timeout is 3n.

Expected behavior: the user can use A without logging back in. Actual behavior: on detection of the user's timed-out session in A, the user is redirected to /logout. This kills both the application and CAS session, requiring the user to log back in. It also leaves the user on the CAS logout page, rather than the page she was trying to reach.

rsutphin commented 13 years ago

New design: