Name
http_auth_verify, http_login_failed, http_map_del, http_methods_set — HTTP authentication and request-mapping table maintenance
Synopsis
integer http_auth_verify(
|
in auth_array any, |
| in realm varchar, | |
| in username varchar, | |
in password_hash varchar); |
http_login_failed(
|
in username varchar); |
http_map_del(
|
in logical_path varchar, |
| in vhost varchar, | |
in listen_host varchar); |
http_methods_set(
|
in methods any); |
Description
http_auth_verify validates an HTTP digest / basic
authentication tuple. auth_array is the parsed
Authorization header (as produced internally when an
HTTP request arrives) and realm /
username / password_hash
specify what to verify against. Returns 1 on success, 0 on failure.
http_login_failed records a failed authentication
attempt for username (or the current request's user
when omitted). The server uses this signal for its account-lockout
machinery and for logging.
http_map_del removes the HTTP-mapping entry that
binds logical_path to a stored procedure or
physical directory. When vhost and/or
listen_host are supplied the deletion is scoped to
that specific vhost listener. This is the deletion counterpart of
http_map_table.
http_methods_set restricts which HTTP methods may
dispatch to the current handler. methods is a
vector of allowed method names ('GET',
'POST', ...); subsequent requests using any other
method return 405 (Method Not Allowed) without invoking the handler.