I would like my app to use Apache Shiro for both authentication and authorization. I would like to start simple and have a relational database be the data source for both of these. This means I need to use the JdbcRealm.
After reading the docs, it is not clear to me what table schema is required for any "user tables", including any tables that link users to their permissions/roles.
So I ask: using Shiro's JdbcRealm
, how/where do I link user's to their respective permissions/roles?
It can't be in the shiro.ini
file because that is a static config file and wouldn't be feasible for connecting to a JDBC data source where users info is stored.