How To assign the roles to the user?
Is there any example?If u find an example please provide that one to me.
Thanq
You can assign roles to the user via the Identity component.Put this to your Authenticator component:
@In
private Identity identity;
public boolean authenticate() {
...
identity.addRole(aRole
);
}