Please Guide me to understand the following and which technology i should use for best implementation:
The first question can be interpreted in two ways. First, you ask for an authentication method, the protocol between the client and the server. Here are two:
Second, you can be asking for a java framework that handels security. This can be spring security for instance. Spring security positiones itself in the filter chain in front of your service. If the request (using BASIC_AUTH for instance) is permitted it gets through, otherwise not. Spring security can be configured to find the users in many many ways, database, your own code, ldap (and active directory).
The second question. Spring security handels roles excellent. I always let my intranet applications depend on roles my app fetch from AD through LDAP. It is quite easy to control what roles a user need to access a function. Kind of like this:
@Secured("ROLE_ADMIN")
The third question. It depends on your restful service framework, but most probably, yes, the same applies.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With