proxy.auth

proxy.auth configures one or more authorization schemes.

Each authorization scheme is configured with a list of key/value options. Each scheme must have a unique name which can then be referred to in a listener configuration.

name=<name>;type=<type>;opt=arg;opt[=arg];...

The following types of authorization schemes are available:

Basic

The basic authorization scheme leverages Http Basic Auth and reads a htpasswd file at startup and credentials are cached until the service exits.

The file option contains the path to the htpasswd file. The realm parameter is optional (default is to use the name)

name=<name>;type=basic;file=<file>;realm=<realm>

Supported htpasswd formats are detailed here

Examples

# single basic auth scheme

name=mybasicauth;type=basic;file=p/creds.file;

# basic auth with multiple schemes

proxy.auth = name=mybasicauth;type=basic;file=p/creds.htpasswd
             name=myotherauth;type=basic;file=p/other-creds.htpasswd;realm=myrealm

The default is

proxy.auth =