Interface for authentication classes used with channel requests.
- 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. | 
- Source:
reset()
Purge any credentials cached from a previous authentication.
- Source:
Type Definitions
authCallback(authErroropt, requestOptionsopt)
Callback invoked with the result of a call to BaseChannelAuth#authenticate.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| authError | Error | <optional> | If no errors occurred during authentication,
  this parameter is  | 
| requestOptions | Object | <optional> | If any errors occurred during
  authentication, this parameter is   | 
- Source: