Constructor
new DigestAuthClient()
Methods
getAuthHeader(uri, method, username, secret, callback)
Creates the "Authentication" header to pass into your request.
Parameters:
| Name | Type | Description |
|---|---|---|
uri |
String | The URI you are requesting. |
method |
String | The HTTP method you are using (e.g. GET). |
username |
String | The username. |
secret |
String | The secret (Note that your secret will be insecure if in plan JS). |
callback |
function | Returns null if the WWW-Authenticate header is not found. |