I am just getting started myself with Shiro, so please take below with a grain of salt (pun intended ;)
On 6/2/11 12:23 AM, set321go wrote: > Hello, > > I have read the documentation but its lacking a bit when it comes to how to > set up salting. I am just trying to get a basic web app working on glassfish > using shiro. I have done some of the examples in the links that are on the > website but I am still unclear on a few things. See Eduard's response as well as the SaltAwareJdbcRealm example in /samples/spring in svn. Maybe someone can chime in with some guidance on a better way to generate and persist the salt than to use the username. > By default I need a users table with username and password if I am not using > salting, is there a default pattern for a database when using salting? Salting should have no impact on the database structure, just what is stored in the database. > If I am not using the default tables how do I tell shiro what the table and > structure is? Looks to me like the way to do this is to override the default queries used by the JdbcRealm via its query setters: setAuthenticationQuery, setUserRolesQuery, setPermissionsQuery. See the javadoc for JdbcRealm. Phil > thanks > > > -- > View this message in context: > http://shiro-user.582556.n2.nabble.com/Default-Salt-Database-structure-tp6430158p6430158.html > Sent from the Shiro User mailing list archive at Nabble.com. >
