[jboss-user] [JBoss Seam] - Re: Unable to authenticate in 1.1.7RC1 : is it a regression?

2007-02-26 Thread fernando_jmt
Could you paste your Authenticator class code.

I got the same error time ago, I would like to see if the code you have is 
similar.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4022407#4022407

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4022407
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Unable to authenticate in 1.1.7RC1 : is it a regression?

2007-02-26 Thread baz
There are several changes. 
1.
 it is now 
Identity.instance().addRole
instead of
Identity.addRole

2. the #{identity.login} returns now loggedIn instead of success

It is best to reread the new documentation and compare

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4022414#4022414

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4022414
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Unable to authenticate in 1.1.7RC1 : is it a regression?

2007-02-26 Thread alex.kozlenkov
Thanks for this help. It works now with the code below: public boolean 
authenticate() {
  | try {
  | User user0 = (User) entityManager.createQuery(
  | from User where username = :username)
  | .setParameter(username, 
Identity.instance().getUsername())
  | .getSingleResult();
  | if ( !compareHash( user0.getHashedPassword(), 
Identity.instance().getPassword() ) )
  | {
  |  return false;
  | }
  | 
  | user = user0;
  | 
  | if( user.getRoles() != null ) {
  | for (UserRole r : user.getRoles())
  | 
Identity.instance().addRole(r.getName());
  | }
  | return true;
  | }
  | catch (NoResultException ex) {
  | log.warn(Invalid username/password);
  | return false;
  | }
  | }
Can anyone clarify why it fails with identity injected via @In--it used to work 
before?
Thanks--Alex


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4022432#4022432

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4022432
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Unable to authenticate in 1.1.7RC1 : is it a regression?

2007-02-26 Thread mariuszs
Im using @In for Identity and this works for me very good.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4022442#4022442

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4022442
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user