12
I’m doing an Eclipse project with JSF 2.2, JPA 2.1, Hibernate 5, Primefaces 5.3, CDI (Weld 1.1).
I want to implement the security part of the application and I’m in doubt between JAAS and Spring Security.
The model below corresponds to what I want to do:
The page registration will be fixed in the BD, but the profile registration and people will be dynamic, that is, I will be able to register several access profiles (with several pages) and link them to people.
My questions are:
- Which would best fit my model, JAAS or Spring Security? Or would it be better to do it in hand (Filter)?
- Both JAAS and Spring Security work with roles, are these roles always fixed in the system? To have a control on each page I would have to have a scroll per page?
- Do you have an example to show me?
Take a look and see if this will help you ? http://www.mkyong.com/spring-security/spring-security-hibernate-annotation-example/ JAAS x Spring Security http://www.guj.com.br/java/105466-jaas-x-acegispring-security
– LR10
Friend, I always use Spring Security, JAAS is excellent too, but Spring Secrity makes me easier to implement. It has a site "BAELDUNG" that has several examples of everything in Spring including Security, the Site Curator EUGEN has a great knowledge in the framework and for several very good tips and tutorials also, look here the link: http://www.baeldung.com/security-spring
– darksteel3000
Take a look and see if this will help you ? http://www.mkyong.com/spring-security/spring-security-hibernate-annotation-example/ JAAS x Spring Security http://www.guj.com.br/java/105466-jaas-x-acegispring-security
– LR10
Gleison, in the context of JAAS, I believe the answer: here may help in understanding your question.
– pss1suporte