2.11Password Protectionπ i
Equivalent to
(-> request? (or/c false/c string? )). The
return is the authentication realm as a string if the request is not
authorized and
#f if the request
is authorized.
[ #:authentication-responderauthentication-responder])
A dispatcher that checks if the request is denied based on
denied?. If so, then
authentication-responder is
called with a
header that requests credentials. If not, then
next-dispatcher is invoked.
Creates a denied procedure from an authorized procedure.
Creates an authorization procedure based on the given password
file. The first returned value is a procedure that refreshes the
password cache used by the authorization procedure.
password-file is parsed as:
[path:string? ];This string is interpreted as a regex
For example:
'(("secret stuff""/secret(/.*)?"(bubba"bbq")(Billy"BoB")))