Skip to main content

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​

NameTypeDescription
usernamestringThe user name, to be stored in identity.
passwordstringThe 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​

PasswordCredentials.identity

Defined in​

uri/src/auth-schemes/basic.ts:7


secret​

• secret: string

The password.

Implementation of​

PasswordCredentials.secret

Defined in​

uri/src/auth-schemes/basic.ts:8