Properties:
| Name | Type | Description |
|---|---|---|
mode |
string | [default: |
realm |
string | [default: |
users |
object | [default: |
Extends
Methods
-
Authorizes the given HTTP request and returns a user name, or
nullif the request is not authorized.Name Type Description requestHTTPRequest The request to authorize.
Returns:
Type Description string The user name, or null. -
Creates a password hash for the given user, realm, and password for use in the
userstable.Name Type Description userstring The user name.
realmstring The name of the authentication realm.
passwordstring The password.
Returns:
Type Description string The password hash. -
Adds an authorization request to the given HTTP response.
Name Type Description responseHTTPResponse The response object.