0
我正在尝试配置Apache Shiro以使用shiro.ini文件与Neo4j配合使用。配置Apache Shiro与Neo4j配合使用
这是我负责认证文件的shiro.ini部分:
...
ds = org.apache.shiro.jndi.JndiObjectFactory
ds.resourceName = java:comp/env/jdbc/Neo4jDb
# What type do I set here
ds.requiredType =
jdbcRealm = org.apache.shiro.realm.jdbc.JdbcRealm
jdbcRealm.permissionsLookupEnabled = true
jdbcRealm.authenticationQuery = <Cypher Query>
jdbcRealm.userRolesQuery = <Cypher Query>
jdbcRealm.permissionsQuery = <Cypher Query>
jdbcRealm.credentialsMatcher = $passwordMatcher
jdbcRealm.dataSource=$ds
securityManager.realms = $jdbcRealm
...
而且在我的context.xml
...
<Resource auth="Container" driverClassName="org.neo4j" maxIdle="30" maxTotal="50" maxWaitMillis="10000"
name="jdbc/Neo4jDb" password="p4ssw0rd" type="" url="jdbc:neo4j:bolt://localhost/" username="neo4j"/>
我的问题是,什么类型做我四郎设置。 ini和context.xml < Resource ... type =“”... >
如果这不起作用,我对如何让shiro工作的替代解决方案感兴趣wi neo4j,如果neo4j具有良好的内置认证和授权,甚至更好,我愿意将其用作解决方案。