1 Reply Latest reply on Sep 27, 2013 10:25 AM by Tiago Wanke Marques

    Seam 2.3.Final configure identityManager

    Tiago Wanke Marques Newbie



      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/ 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/ 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.