Hi,
Im trying to configure identityManager, I read the documentation that instruct me to configure my user and role classes by adding this configuration within my components.xml:
<security:jpa-identity-store user-class="org.jboss.seam.example.seamspace.MemberAccount" role-class="org.jboss.seam.example.seamspace.MemberRole"/>
As im using JPA, its not necessary to configure identity-store and role-identity-store.
Having that i annotate my User class with the required annotations @UserPrincipal, @UserPassword and @UserRoles and my Role class with @RoleName. I add a user to my user table but when i call identityManager.authenticate(credentials.getUsername(), credentials.getPassword()); always return false. I use debug to see if the credentials attributes were there and they are.
Thats the console output:
10:27:15,320 INFO [stdout] (http-localhost/127.0.0.1:8080-1) Hibernate: select user0_.cd_user as cd1_2_, user0_.name as name2_2_, user0_.password as password3_2_, user0_.username as username4_2_ from users user0_ where user0_.username=?
10:27:15,387 INFO [javax.enterprise.resource.webcontainer.jsf.renderkit] (http-localhost/127.0.0.1:8080-1) AVISO: FacesMessage(s) foram enfileirados, mas podem não ter sido exibidos.
sourceId=null[severity=(INFO 0), summary=(Login failed), detail=(Login failed)]
Is there any other necessary configuration that i forgot?
Tnks in advance.
Found it, i though that if i didn´t set a hash method, no hash was used but actually to use no hash i have to set @UserPassword(hash="none").
Tnks.