Authentication and Role in SOAP based Web Services (Java) -


please guide me understand following , technology should use best implementation:

  1. how many type of authorization/security have , 1 best.
  2. how can implement role based security.
  3. does same applies restful services well.

the first question can interpreted in 2 ways. first, ask authentication method, protocol between client , server. here two:

  • basic auth - client sends username , password in plain text in request. if making internal service (inside corporate network) or have encrypted channel (https) work fine.
  • kerberos - works fine in windows world , controlled active directory. if try bring java, asking nightmares.

second, can asking java framework handels security. can spring security instance. spring security positiones in filter chain in front of service. if request (using basic_auth instance) permitted gets through, otherwise not. spring security can configured find users in many many ways, database, own code, ldap (and active directory).

the second question. spring security handels roles excellent. let intranet applications depend on roles app fetch ad through ldap. quite easy control roles user need access function. kind of this:

@secured("role_admin") 

the third question. depends on restful service framework, probably, yes, same applies.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -