Enhanced auth_cookie behavior
|Reported by:||Owned by:||Jonas Borgström|
I'm running trac and used the ReWriteEngine to support multiple projects. But Logout does not work anymore. I saw, that trac uses a session cockie. Info from Mozilla Firebird: Name: trac_auth Content: 04be779069adc4096e3c6ab841be3cea Host: cartman Path/projects/<someproject> Server Secure: no Expires: at end of session Policy: no policy about storing identifiable information
So it would be nice, if you could add authentification-information in the trac-db: For each cookie a 'loggend_in' variable. (So if the user klicks on 'Logout', you could store 'false' in it.) A timestamp for the last login would also be nice, so that a session runs out after e.g. 8h of no action)
It would also be cool if you could support that 'logged_in'-variable with trac-admin. The reason is: Here in my company we use 3 components: Trac, SVN, and a selfmade PHP-programmed userinterface for adding/modifying new users, projects, permissions… And we use the same authentication system for all these three components. So if i want to log-out at one component (but don't want to close the browser!), i also should be logged-out at the other components.
So I need a new trac-command for asking the logged_in-state: 'trac-admin <path-to-project> logged_in 04be779069adc4096e3c6ab841be3cea' Result: =⇒ coockie not found or =⇒ 04be779069adc4096e3c6ab841be3cea loggend_in = TRUE or =⇒ 04be779069adc4096e3c6ab841be3cea loggend_in = TRUE
and a new trac-command for setting the logged_in-state: 'trac-admin <path-to-project> login 04be779069adc4096e3c6ab841be3cea StefanW' or 'trac-admin <path-to-project> logout 04be779069adc4096e3c6ab841be3cea StefanW'
BTW trac&svn are great!
Change History (5)
comment:2 by , 16 years ago
|Priority:||normal → low|
|Severity:||normal → enhancement|
|Summary:||Logout-problem → Enhanced auth_cookie behavior|