0

What options do I have to enforce authentication/authorization in a java web app ? From my research, there's:

  • JAAS
  • JNDI
  • Spring security

Any others ? Does JEE5 or JEE6 have anything new ?

canadadry
  • 8,115
  • 12
  • 51
  • 68

2 Answers2

0

See Securing Web Applications chapiter for JEE6. Also you can consider Apache Shiro as alternative for Spring Security. If you already use Spring Framework then just go with Spring Security.

Maksym Demidas
  • 7,707
  • 1
  • 29
  • 36
0

if you do not want to implement the identity-provider by yourself, you can consider using OpenID. This way, you can use any OpenID provider to provide the authentication/authorization.

In addition, you can consider OAuth2.

Do not mix between the two, there are many posts here that can explain the differences...

Community
  • 1
  • 1
OhadR
  • 8,276
  • 3
  • 47
  • 53