Skip to content

Commit fa6503d

Browse files
committed
WIP: doc
1 parent 6293b0f commit fa6503d

1 file changed

Lines changed: 40 additions & 2 deletions

File tree

README.md

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,40 @@
1-
# basic_hmac_auth
2-
HMAC auth helper for Squid
1+
# basic\_hmac\_auth
2+
3+
HMAC auth helper for Squid.
4+
5+
TODO: Tell about format and idea.
6+
7+
## Usage
8+
9+
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
38+
-version
39+
show program version and exit
40+
```

0 commit comments

Comments
 (0)