I am using Apache Shiro in my project. Currently I am using 1.1.0 version and now I am trying to migrate Shiro components to latest version 1.2.1. But when I try to do user authentication against a db it not working for some reason and I am not getting any errors but authentication is not happening.
Following are the database details I had given in shiro.ini file.
[main]
cacheManager = com.cacheManager.ShiroCacheManager
securityManager.cacheManager = $cacheManager
jdbcRealm=org.apache.shiro.realm.jdbc.JdbcRealm
jdbcRealm.authenticationQuery = select user_pass from users where user_name = ?
jdbcRealm.userRolesQuery = select role_name from user_roles where user_name = ?
ds = com.mysql.jdbc.jdbc2.optional.MysqlDataSource
ds.serverName = 192.168.0.75
ds.port = 3306
ds.user = test
ds.databaseName = appfuse
jdbcRealm.dataSource = $ds
But still it is not hitting the database. I am using tomcat server and trying to use guice and shiro integration example...
Any help in this regard is really appreciated and thanks in advance for your help!
Thanks & Regards,
Gupta Katakam
There are a number of things different between 1.1 and 1.2 that may affect your problem... here's the one I think is most likely
Also, there are a number of authentication related changes:
I think it's the first one, but the entire list of release notes can be found here for 1.2.0 and here for 1.2.1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With