2017-10-15 20:36:49 +01:00
|
|
|
# Digest Authentication
|
2016-09-01 15:19:01 +01:00
|
|
|
|
2017-02-02 16:08:49 +02:00
|
|
|
Mongoose has a built-in Digest (MD5) authentication support. In order to
|
|
|
|
enable Digest authentication, create a file `.htpasswd` in the directory
|
|
|
|
you would like to protect. That file should be in the format that Apache's
|
|
|
|
`htdigest` utility.
|
|
|
|
|
|
|
|
You can use either Apache `htdigest` utility, or
|
2017-10-15 20:36:49 +01:00
|
|
|
Mongoose pre-build binary at https://www.cesanta.com/binary.html
|
2017-02-02 16:08:49 +02:00
|
|
|
to add new users into that file:
|
|
|
|
|
|
|
|
```
|
|
|
|
mongoose -A /path/to/.htdigest mydomain.com joe joes_password
|
|
|
|
```
|