Class: BasicCredentials
@divine/uri.BasicCredentials
A helper implementation of PasswordCredentials for 'Basic' HTTP authentication.
Implements
Constructors
constructor
• new BasicCredentials(username
, password
)
Constructs a new BasicCredentials/PasswordCredentials object.
Parameters
Name | Type | Description |
---|---|---|
username | string | The user name, to be stored in identity. |
password | string | The user password, to be stored in secret. |
Defined in
uri/src/auth-schemes/basic.ts:16
Properties
identity
• identity: string
The identity of the entity to be authorizied, like a user name of identity token.
Implementation of
Defined in
uri/src/auth-schemes/basic.ts:7
secret
• secret: string
The password.