forked from basilapi/basil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasil.ini.default
30 lines (29 loc) · 1.12 KB
/
basil.ini.default
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
# BASIL Example Configuration
basil.namespace = http://basilapi.github.io/data/ns/
#
# MySQL Database
ds = com.mysql.jdbc.jdbc2.optional.MysqlDataSource
ds.serverName = localhost
ds.port = 3306
ds.user = basil
ds.password = yourpasswordhere
ds.databaseName = basil
#
# ------------------------------------------------------
# SHIRO specific (do not touch!)
#
# password matcher
passwordMatcher = org.apache.shiro.authc.credential.PasswordMatcher
passwordService = org.apache.shiro.authc.credential.DefaultPasswordService
passwordMatcher.passwordService = $passwordService
jdbcRealm = org.apache.shiro.realm.jdbc.JdbcRealm
jdbcRealm.permissionsLookupEnabled = true
jdbcRealm.authenticationQuery = SELECT password FROM users WHERE username = ?
jdbcRealm.userRolesQuery = SELECT role_name FROM users_roles WHERE username = ?
jdbcRealm.credentialsMatcher = $passwordMatcher
jdbcRealm.dataSource=$ds
securityManager.realms = $jdbcRealm
sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager
securityManager.sessionManager = $sessionManager
filterChainResolver = org.apache.shiro.web.filter.mgt.PathMatchingFilterChainResolver