Currently the default repoze.who implementation keeps a login active during the duration of the session. As soon as the session is closed, the auth info is lost. Having a "remember me" checkbox is a common option on logins to keep the auth information longer than the duration of the session. This way the login can be skipped during later visits.
When trying to implement this for a client today, I spent several hours digging around for an optimal solution before finally throwing an embarrassingly terrible monkey-patch into the repose.who auth_tkt plugin file.
Can a solution for this please be documented or implemented? Perhaps there's a way to use base_config.sa_auth.form_plugin to inject the "identity" object with a max_age parameter, but I simply could not figure it out or find a helpful lead on it.
Gustavo added this capability to repoze.who several months ago, but I am unsure how it could be implemented on the TG side of things. For reference please see Gustavo's post here: http://groups.google.com/group/turbogears/browse_thread/thread/da23799e9b13e451
I would be more than happy to write documentation on this if a clear solution was available.
Thank you,
Seth