basic_auth block lets you configure basic auth for your gateway. Like all
access control types, the
basic_auth block is defined in the
definitions block and can be referenced in all configuration
blocks by its required label.
htpasswd_file are configured, the incoming
credentials from the
Authorization request HTTP header field are checked against
password if the user matches, and against the data in the file referenced
user is accessible via
request.context.<label>.user variable for successfully authenticated requests.
Couper uses Apache's httpasswd file format.
bcrypt password encryption are supported. The file is loaded once at startup. Restart Couper after you have changed it.
Log fields for custom logging. Inherited by nested blocks.
The htpasswd file.
The corresponding password.
The realm to be sent in a WWW-Authenticate response HTTP header field.
The user name.
Configures an error handler (zero or more).