From 7897035179f7eebaf149d75e772ec3d99d56708d Mon Sep 17 00:00:00 2001 From: defanor Date: Sat, 30 Mar 2019 05:59:59 +0300 Subject: Handle `auth=try` Serve pages with status code 401 if `auth` is set to `try`, but credentials are not present. --- README.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 2d7f07c..f5343e9 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,9 @@ authentication, and the provided credentials are used directly for PostgreSQL authentication. HTTP authentication also gets requested if a database connection failure was password-related. +With `auth=try` pgxhtml would serve pages composed using defaults if +no credentials are provided, but with 401 status code. + ### Web server This is intended to be used with an HTTP server, which would take care -- cgit v1.2.3