I am not familiar with shiro as well. Just a user. 

At the moment the way how I use shiro with specific/ customized table (User,
Roles, Permission) is by extending JdbcRealm. Then overriding the methods in
JdbcRealm. For instance, I want to integrate hibernate instead of using jdbc
call directly. So I subclass JpaRealm class which looks like

public class JpaRealm extends JdbcRealm{
...
// methods
... doGetAuthen....(){
}
... getPermission ...(){
}
}

When running the procedure like quick start, the necessary methods
overridden will get called. 

Hope this helps.


smaskar wrote:
> 
> Is there a way to use application specific tables and not the one which
> comes with shiro default.
> 
> Our application already has user, role and permission tables and we wanted
> to use the same using shiro framework, Is there any configuration file
> where one can specify the custom tables instead of shiro defaults.
> 
> -Santosh Maskar
> 

-- 
View this message in context: 
http://n2.nabble.com/JdbcRealm-Application-specific-table-instead-of-default-tp3509201p3509333.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to