Yes, I return true in authenticate() call

  |     public boolean authenticate() {
  |             String user = identity.getUsername();
  |             log.info("authenticating #0", user);
  |             if ("tim".equals(user)) {
  |                     //identity.addRole("admin");
  |                     assignRole();
  |             } else {
  |                     identity.addRole("user");
  |             }
  |             return true;
  |     }
  | 
  |     public void assignRole() {
  |             administrationWorkingMemory.assertObject(identity);
  |             administrationWorkingMemory.fireAllRules();
  |     }
  | 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061435#4061435

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061435
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to