| 1 | {{{ |
---|
| 2 | |
---|
| 3 | <authenticatiion-manager alias="authenticationManager"> |
---|
| 4 | |
---|
| 5 | <authentication-provider> |
---|
| 6 | |
---|
| 7 | <user-service> |
---|
| 8 | |
---|
| 9 | <user authorities="ROLE_USER" name="guest" password="guest"/> |
---|
| 10 | |
---|
| 11 | </user-service> |
---|
| 12 | |
---|
| 13 | </authentication-provider> |
---|
| 14 | |
---|
| 15 | </authentication-manager> |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | --------------------------------------------------------------------------------------- |
---|
| 19 | |
---|
| 20 | <authenticatiion-manager alias="authenticationManager"> |
---|
| 21 | |
---|
| 22 | <authentication-provider> |
---|
| 23 | |
---|
| 24 | <jdbc-user-service data-source-ref="dataSource"/> |
---|
| 25 | |
---|
| 26 | </authentication-provider> |
---|
| 27 | |
---|
| 28 | </authentication-manager> |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | <jdbc:embedded-database id="dataSource" type="HSQL"> |
---|
| 32 | |
---|
| 33 | <jdbc:script location="classpath:security-schema.sql"/> |
---|
| 34 | |
---|
| 35 | </jdbc:embedded-database> |
---|
| 36 | |
---|
| 37 | insert into users(username,password,enabled) values('guest','guest',true); |
---|
| 38 | insert into authorities(username,authority) values('guest','ROLE_USER'); |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | }}} |