You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
milo-minderbender edited this page Aug 17, 2012
·
3 revisions
Stateless vs Stateful implementation.
Play20-auth follows the Play framework's stateless policy.
However, Play20-auth's default implementation is stateful,
because the stateless implementation has the following security risk:
If user logs-in to your application in a internet-cafe, then returns home neglecting to logout.
If the user logs in again at home they will not invalidate the session.
Nevertheless, you want to use a fully stateless implementation then just override the resolver method of AuthConfig like this:
traitAuthConfigImplextendsAuthConfig {
// Other settings omitted.overridedefresolver[A](implicitrequest: Request[A]) =newCookieRelationResolver[Id, A](request)
}