Few months ago I wrote about how to use securesocial and play2-memcached plugins together.
In the meantime, few things changed and combining SecureSocial with play2-memcached becomes really straightforward.
I want to show you how this new solution was born and how you can use it.
As I promised earlier there will be some news from battlefield 😉
SecureSocial is a plugin for Play! Framework which provides support for authentication and authorization (through both classic user/pass and OAuth providers).
It requires presence of CacheAPI implementation plugin but don’t worry – Play comes with default implementation based on Ehcache, which works very well.
But we want to try also alternative solution – Memcached, a distributed memory object caching system.
Maciej add play2-memcached plugin to project dependencies and configure it. I also have to install memcached daemon on my local machines.
Application starts without any warnings and everything goes as expected until I fire secured action.
This was a point where the problems begins 😦