File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #
2+ # BASIL Example Configuration
3+ #
4+ # MySQL Database
5+ ds = com.mysql.jdbc.jdbc2.optional.MysqlDataSource
6+ ds.serverName = localhost
7+ ds.port = 8889
8+ ds.user = root
9+ ds.password = NMg17ruPknQSC2rF
10+ ds.databaseName = basil
11+ #
12+ # ------------------------------------------------------
13+ # SHIRO specific (do not touch!)
14+ #
15+ # password matcher
16+ passwordMatcher = org.apache.shiro.authc.credential.PasswordMatcher
17+ passwordService = org.apache.shiro.authc.credential.DefaultPasswordService
18+ passwordMatcher.passwordService = $passwordService
19+
20+ jdbcRealm = org.apache.shiro.realm.jdbc.JdbcRealm
21+ jdbcRealm.permissionsLookupEnabled = true
22+ jdbcRealm.authenticationQuery = SELECT password FROM users WHERE username = ?
23+ jdbcRealm.userRolesQuery = SELECT role_name FROM users_roles WHERE username = ?
24+ jdbcRealm.credentialsMatcher = $passwordMatcher
25+ jdbcRealm.dataSource =$ds
26+ securityManager.realms = $jdbcRealm
27+ sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager
28+ securityManager.sessionManager = $sessionManager
29+ filterChainResolver = org.apache.shiro.web.filter.mgt.PathMatchingFilterChainResolver
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >basil</groupId >
88 <artifactId >parent</artifactId >
9- <version >0.7.0-SNAPSHOT </version >
9+ <version >0.7.0</version >
1010 <relativePath >../parent</relativePath >
1111 </parent >
1212 <artifactId >basil</artifactId >
Original file line number Diff line number Diff line change 1313 <parent >
1414 <groupId >basil</groupId >
1515 <artifactId >parent</artifactId >
16- <version >0.7.0-SNAPSHOT </version >
16+ <version >0.7.0</version >
1717 <relativePath >../parent</relativePath >
1818 </parent >
1919
Original file line number Diff line number Diff line change 1+ docker run --detach --name=basil-it-mysql --env=" MYSQL_ROOT_PASSWORD=NMg17ruPknQSC2rF" --env=" MYSQL_ROOT_HOST=%" --publish 8889:3306 mysql/mysql-server:5.7
Original file line number Diff line number Diff line change 66
77 <groupId >basil</groupId >
88 <artifactId >parent</artifactId >
9- <version >0.7.0-SNAPSHOT </version >
9+ <version >0.7.0</version >
1010 <packaging >pom</packaging >
1111
1212 <name >BASIL :: Parent</name >
2626 <shiro .version>1.4.2</shiro .version>
2727
2828 <!-- basil version -->
29- <basil .version>0.7.0-SNAPSHOT </basil .version>
29+ <basil .version>0.7.0</basil .version>
3030
3131 <!-- github server corresponds to entry in ~/.m2/settings.xml -->
3232 <github .global.server>github</github .global.server>
Original file line number Diff line number Diff line change 88 <parent >
99 <groupId >basil</groupId >
1010 <artifactId >parent</artifactId >
11- <version >0.7.0-SNAPSHOT </version >
11+ <version >0.7.0</version >
1212 <relativePath >parent</relativePath >
1313 </parent >
1414 <name >BASIL :: Reactor</name >
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >basil</groupId >
88 <artifactId >parent</artifactId >
9- <version >0.7.0-SNAPSHOT </version >
9+ <version >0.7.0</version >
1010 <relativePath >../parent</relativePath >
1111 </parent >
1212 <artifactId >rendering</artifactId >
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >basil</groupId >
88 <artifactId >parent</artifactId >
9- <version >0.7.0-SNAPSHOT </version >
9+ <version >0.7.0</version >
1010 <relativePath >../parent</relativePath >
1111 </parent >
1212 <artifactId >basil-server</artifactId >
You can’t perform that action at this time.
0 commit comments