You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This auth helper can be used with configuration like this:
10
+
11
+
```
12
+
auth_param basic program /usr/local/bin/basic_hmac_auth -secret 1be3ada09688ca3c4a674a7d2e285a5a04ee423e082ae6c6b91946e2853af239
13
+
auth_param basic children 8 startup=8 idle=8 concurrency=50
14
+
auth_param basic credentialsttl 15 minutes
15
+
auth_param basic casesensitive on
16
+
acl authenticated proxy_auth REQUIRED
17
+
http_access allow authenticated
18
+
http_access deny all
19
+
```
20
+
21
+
> [!IMPORTANT]
22
+
> Note that this helper works **only** with concurrent helper protocol, so `concurrency=` parameter **must** be greater than zero.
23
+
24
+
> [!TIP]
25
+
> HMAC shared secret can be also specified in file referenced by `-secret-file` command line option or with `BASIC_AUTH_HMAC_SECRET` environment variable.
26
+
27
+
## Synopsis
28
+
29
+
```
30
+
$ basic_hmac_auth -h
31
+
Usage of /usr/local/bin/basic_hmac_auth:
32
+
-buffer-size int
33
+
initial buffer size for stream parsing
34
+
-secret string
35
+
hex-encoded HMAC secret value
36
+
-secret-file string
37
+
file containing single line with hex-encoded secret
0 commit comments