-
Notifications
You must be signed in to change notification settings - Fork 5
/
lognavigator-authentication-context.xml
60 lines (54 loc) · 3.05 KB
/
lognavigator-authentication-context.xml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns:beans="http://www.springframework.org/schema/beans"
xmlns="http://www.springframework.org/schema/security"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd"
>
<!-- XML users with bcrypt hash -->
<authentication-manager>
<authentication-provider>
<password-encoder hash="bcrypt" />
<user-service>
<user name="user1" password="$2y$10$GaRb0RZWrg.teBQOhJdJoeGD0Q8cs4B0/6v6wOFb0dc3AtDC0FfXm" authorities="lognavigator, lognavigator-protected" />
<user name="user2" password="$2y$10$GaRb0RZWrg.teBQOhJdJoeGD0Q8cs4B0/6v6wOFb0dc3AtDC0FfXm" authorities="lognavigator" />
<user name="user3" password="$2y$10$GaRb0RZWrg.teBQOhJdJoeGD0Q8cs4B0/6v6wOFb0dc3AtDC0FfXm" authorities="" />
</user-service>
</authentication-provider>
</authentication-manager>
<!-- XML users with MD5 hash -->
<!-- <authentication-manager> -->
<!-- <authentication-provider> -->
<!-- <password-encoder ref="md5PasswordEncoder"/> -->
<!-- <user-service> -->
<!-- <user name="user1" password="5f4dcc3b5aa765d61d8327deb882cf99" authorities="lognavigator, lognavigator-protected" /> -->
<!-- <user name="user2" password="5f4dcc3b5aa765d61d8327deb882cf99" authorities="lognavigator" /> -->
<!-- <user name="user3" password="5f4dcc3b5aa765d61d8327deb882cf99" authorities="" /> -->
<!-- </user-service> -->
<!-- </authentication-provider> -->
<!-- </authentication-manager> -->
<!-- <beans:bean id="md5PasswordEncoder" class="org.springframework.security.crypto.password.MessageDigestPasswordEncoder"> -->
<!-- <beans:constructor-arg name="algorithm" value="MD5" /> -->
<!-- </beans:bean> -->
<!-- Properties users -->
<!-- <authentication-manager> -->
<!-- <authentication-provider> -->
<!-- <password-encoder hash="bcrypt" /> -->
<!-- <user-service id="myUserService" properties="file:${user.dir}/src/test/resources/users.properties"/> -->
<!-- </authentication-provider> -->
<!-- </authentication-manager> -->
<!-- Reloadable properties users -->
<!-- <authentication-manager> -->
<!-- <authentication-provider user-service-ref="userService"> -->
<!-- <password-encoder hash="bcrypt" /> -->
<!-- </authentication-provider> -->
<!-- </authentication-manager> -->
<!-- <beans:bean id="userService" class="org.lognavigator.security.ReloadableInMemoryUserDetailsService"> -->
<!-- <beans:property name="properties" value="file:${user.dir}/src/test/resources/users.properties"/> -->
<!-- </beans:bean> -->
<!-- LDAP users -->
<!-- <authentication-manager> -->
<!-- <ldap-authentication-provider user-dn-pattern="uid={0},ou=people" group-search-base="ou=groups" role-prefix="none" /> -->
<!-- </authentication-manager> -->
<!-- <ldap-server ldif="file:${user.dir}/src/test/resources/users.ldif" /> -->
</beans:beans>