Reputation: 3379
I have a small application written in Play!
which allows user registration and adding some content for registered users which other registered users can view. I'd like to add some REST API to my application with [resteasy]
module, and my question is: are there any best practices or known solutions for performing authentication with rest to allow users managing their own content using resteasy in Play! ?
What I'm thinking about now, are two solutions:
Any help is appreciated.
Upvotes: 2
Views: 3034
Reputation: 16439
You have some related answers on how to approach security here and here.
Personally I would try to create some OAuth 2 authentication if the API is to be used by 3rd parties. If it is private usage (only your apps will call it) other methods plus SSL should suffice.
Upvotes: 3