The set-basic-auth function sets the HTTP basic authentication credentials used by the server when it sends an HTTP request. Use set-basic-auth to authenticate to a remote origin server or proxy server.
The following table describes parameters for the set-basic-auth function.
Table 7–61 set-basic-auth Parameters|
Parameter |
Description |
|---|---|
|
user |
Name of the user to authenticate. |
|
password |
Password of the user to authenticate. |
|
hdr |
(Optional) Name of the HTTP request header used to communicate the credentials. |
|
bucket |
(Optional) Common to all obj.conf functions. Adds a bucket to monitor performance. For more information, see The bucket Parameter. |
ObjectType fn="set-basic-auth"
user="admin"
password="secret"
hdr="proxy-authorization"