File tree 1 file changed +30
-5
lines changed
src/docs/content/docs/usage
1 file changed +30
-5
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,18 @@ Authentication can be activated in Reaper for the web UI only. It relies on [Apa
12
12
13
13
To activate authentication, add the following block to your Reaper yaml file :
14
14
15
- ```
15
+ ``` ini
16
16
accessControl:
17
17
sessionTimeout: PT10M
18
18
shiro:
19
19
iniConfigs: [" file:/path/to/shiro.ini" ]
20
20
```
21
21
22
+ ## With clear passwords
23
+
22
24
Create a ` shiro.ini ` file and adapt it from the following sample :
23
25
24
- ```
26
+ ``` ini
25
27
[main]
26
28
authc = org.apache.shiro.web.filter.authc.PassThruAuthenticationFilter
27
29
authc.loginUrl = /webui/login.html
@@ -42,10 +44,33 @@ user2 = password2
42
44
/** = anon
43
45
```
44
46
45
- Then start Reaper.
47
+ ## With encrypted passwords
48
+
49
+ Based on [ Shiro's document on Encrypting passwords] ( https://shiro.apache.org/configuration.html#Configuration-EncryptingPasswords ) :
50
+
51
+ ``` ini
52
+ [main]
53
+ authc = org.apache.shiro.web.filter.authc.PassThruAuthenticationFilter
54
+ authc.loginUrl = /webui/login.html
55
+ sha256Matcher = org.apache.shiro.authc.credential.Sha256CredentialsMatcher
56
+ iniRealm.credentialsMatcher = $sha256Matcher
46
57
47
- Both the REST API and the ` /webui/login.html ` pages will be accessible anonymously, but all other pages will require to be authenticated.
58
+ [users]
59
+ john = 807A09440428C0A8AEF58BD3ECE32938B0D76E638119E47619756F5C2C20FF3A
48
60
49
-
50
61
62
+ [urls]
63
+ # Allow anonynous access to login page (and dependencies), but no other pages
64
+ /webui/ = authc
65
+ /webui = authc
66
+ /webui/login.html = anon
67
+ /webui/*.html* = authc
68
+ /webui/*.js* = anon
69
+ /ping = anon
70
+ /login = anon
71
+ /** = anon
72
+ ```
73
+
74
+ Then start Reaper.
51
75
76
+ Both the REST API and the ` /webui/login.html ` pages will be accessible anonymously, but all other pages will require to be authenticated.
You can’t perform that action at this time.
0 commit comments