diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2020-02-28 11:11:49 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2020-02-28 11:11:49 +0200 |
commit | 6499240b4bc400332423432c73e12a3be994ff65 (patch) | |
tree | d9aeaf1fd76e83e5c01248b1c6b241a63491be61 /doc | |
parent | 73bfc3bdfac590266ad67c48de5e866bb5d5fa4d (diff) | |
download | ping903-6499240b4bc400332423432c73e12a3be994ff65.tar.gz ping903-6499240b4bc400332423432c73e12a3be994ff65.tar.bz2 |
Implement "auth none" type.
* src/ping903.c (cf_auth): Support for "auth none".
(try_auth): Take action depending on the type of the
matching auth_location structure.
* doc/ping903.conf.5: Document "auth none"
* src/ping903.conf: Example of "auth none".
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ping903.conf.5 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/ping903.conf.5 b/doc/ping903.conf.5 index befe082..1889892 100644 --- a/doc/ping903.conf.5 +++ b/doc/ping903.conf.5 @@ -212,7 +212,22 @@ authorization: auth basic POST /config /etc/ping903/htpasswd Modification auth basic PUT /config .fi +.TP +\fBauth none\fR \fIMETHOD\fR \fIURL\fR +Disables authorization for this combination of \fIMETHOD\fR and +\fIURL\fR. See \fBauth basic\fR for the description of \fIMETHOD\fR +and \fIURL\fR. + +Use this statement to exempt an URL from authorization which is +otherwise required for its parent URL. For example, the two +statements below require basic authorization for "/config", excepting +"/config/ip-list": .sp +.nf +auth none GET /config/ip-list +auth basic GET /config /etc/ping903/htpasswd "Config Access" +.fi +.PP Notice, that an incoming HTTP request is matched against each \fBauth\fR statement in turn, in the order they appear in the configuration file, and it is the first matching statement that |