seems like you are missing a component for authentication. seam gen usualy
creates a bean like this
package upr;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Logger;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.log.Log;
import org.jboss.seam.security.Identity;
@Name("authenticator")
public class Authenticator
{
@Logger Log log;
@In Identity identity;
public boolean authenticate()
{
log.info("authenticating #0", identity.getUsername());
//write your authentication logic here,
//return true if the authentication was
//successful, false otherwise
identity.addRole("admin");
return true;
}
}
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060454#4060454
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060454
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user