I was using SecureSocial 2.0.7, and I’d implemented a UserServicePlugin, and users could log in. I could stop and restart the server (or recompile or whatever), and users would remain logged in.
Since upgrading to 2.0.12, the login session is not persistent across server restarts.
I’ve added debug logging to every method in UserServicePlugin
. The user is being saved
at login. However, when the server restarts, and I attempt to access a page as a previously-logged-in user, I just see in the logs:
[info] play - database [default] connected at jdbc:postgresql://localhost/xxxxxx
[info] application - [securesocial] loaded templates plugin: sec.SecureSocialViews
[info] play - Starting application default Akka system.
[info] application - [securesocial] loaded user service: class sec.LoginUserService
[info] application - [securesocial] loaded password hasher bcrypt
[info] application - [securesocial] loaded identity provider: userpass
[info] play - Application started (Dev)
[debug] application - [securesocial] calling deleteExpiredTokens()
[debug] application - deleteExpiredTokens
[debug] application - [securesocial] anonymous user trying to access : '/supplier/requests'
Any ideas? I wonder if for some reason the login cookie is getting nuked before it even gets as far as checking for an existing login session…
I’m using username/password authentication.