I am building an application which I'm intending to deploy on Pivotal Web Services. I want to secure the application using Spring Security. The Security should be role-based, and users should be able to register themselves in my application.
I want the application to work in a stateless way, I know how to handle a "user system" like this when it comes to stateful systems, using sessions, but I am completely clueless to handle this on PWS where you have multiple instances of the same application.
What's the best way to handle this? Do I have to set up an OAUTH2 server for this?