On 30 May 2014 07:57, Erik de Hair <[email protected]> wrote: > Hi Dan, > > I added your code to some domain class but it only returns the Isis role. > > I have no roles in ini-configs, only in the database via JDBC-realm.
OK, I hadn't appreciated you were using a JdbcRealm instead of Shiro's iniRealm. > Do I maybe have to use a certain setup for my JDBC-realm-config for this > to work? > > Yup. Can't tell you how to though; Estatio uses an LDAP realm. Probably one for the Shiro mailing list, though the links below probably (randomly harvested from web) probably provide enough hints for you to figure it out. Let us know how you get on, Dan http://java.dzone.com/articles/java-web-application-security-1 http://stackoverflow.com/questions/18728360/apache-shiro-using-database-to-read-users-roles-and-permissions http://meri-stuff.blogspot.co.uk/2011/04/apache-shiro-part-2-realms-database-and.html http://shiro-user.582556.n2.nabble.com/Shiro-Jdbc-Realm-Mysql-td6519616.html Thanks, > Erik > >
