I know that this may be a duplicate question,but I could not find any answer that satisfies my need. I have RESTful API using jersey , and i want to secure them with basic authentication with different roles.
so i need :
1 - secure the API with basic authentication
2- the username and the password should be stored in the DB.
3- allow different roles (in: admin, support , basic ..)
Note : i'm using Tomcat 7 server
Please advice
Thanks