[jboss-user] [JBoss Seam] - Re: Security rules for Role in document not working..
tim_ph
do-not-reply at jboss.com
Fri Jul 6 14:54:33 EDT 2007
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
More information about the jboss-user
mailing list