[2.0-scala] ActionHandler for persistent "remember me" cookies

56 views
Skip to first unread message

Will Sargent

unread,
Jul 7, 2012, 6:17:24 PM7/7/12
to play-fr...@googlegroups.com
Hi all,

I've noticed a couple of questions about using Action composition in
requests and using cookies for session handling. For "remember me"
functionality, it's a little more tricky, because you need to capture
the information at the top of any request and then pass the action
down either with a new cookie or removing an existing one.

I've written an ActionHandler gist that does a pretty good job of
token based authentication, based off the algorithm in
http://jaspan.com/improved_persistent_login_cookie_best_practice -- I
haven't included some classes, but this should be enough for people to
get started. No license attached, but it'd be nice to get a mention
if you include this in a library.

https://gist.github.com/3068212

Will.
Reply all
Reply to author
Forward
0 new messages