Constructor
new ChannelAuth(base, username, password, optionsopt)
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
base |
String | Base URL to forward authentication requests to. |
||||||||||||||||||||||||||||||||||||
username |
String | User name to supply for request authentication. |
||||||||||||||||||||||||||||||||||||
password |
String | Password to supply for request authentication. |
||||||||||||||||||||||||||||||||||||
options |
Object |
<optional> |
Additional options to supply for request authentication. Properties
|
- Implements:
- Source:
Methods
authenticate(requestOptions, callback)
Authenticate the user for an HTTP channel request. The supplied callback should be invoked with the results of the authentication attempt. See BaseChannelAuth~authCallback for more information on the content provided to the callback.
Parameters:
Name | Type | Description |
---|---|---|
requestOptions |
Object | Options included in the HTTP channel request. |
callback |
BaseChannelAuth~authCallback | Callback function invoked with the results of the authentication attempt. |
- Implements:
- Source:
reset()
Purge any credentials cached from a previous authentication.
- Implements:
- Source: