BasicAuthenticationCredentials class
Constructors
Basic |
Creates a new BasicAuthenticationCredentials object. |
Properties
authorization |
|
password | |
user |
Methods
sign |
Signs a request with the Authentication header. |
Constructor Details
BasicAuthenticationCredentials(string, string, string)
Creates a new BasicAuthenticationCredentials object.
new BasicAuthenticationCredentials(userName: string, password: string, authorizationScheme?: string)
Parameters
- userName
-
string
User name.
- password
-
string
Password.
- authorizationScheme
-
string
The authorization scheme.
Property Details
authorizationScheme
authorizationScheme: string
Property Value
string
password
password: string
Property Value
string
userName
userName: string
Property Value
string
Method Details
signRequest(WebResourceLike)
Signs a request with the Authentication header.
function signRequest(webResource: WebResourceLike): Promise<WebResourceLike>
Parameters
- webResource
- WebResourceLike
The WebResourceLike to be signed.
Returns
Promise<WebResourceLike>
The signed request object.