Udostępnij przez


BasicAuthenticationCredentials class

Konstruktory

BasicAuthenticationCredentials(string, string, string)

Tworzy nowy obiekt BasicAuthenticationCredentials.

Właściwości

authorizationScheme
password
userName

Metody

signRequest(WebResourceLike)

Podpisuje żądanie z nagłówkiem Authentication (Uwierzytelnianie).

Szczegóły konstruktora

BasicAuthenticationCredentials(string, string, string)

Tworzy nowy obiekt BasicAuthenticationCredentials.

new BasicAuthenticationCredentials(userName: string, password: string, authorizationScheme?: string)

Parametry

userName

string

Nazwa użytkownika.

password

string

Hasło.

authorizationScheme

string

Schemat autoryzacji.

Szczegóły właściwości

authorizationScheme

authorizationScheme: string

Wartość właściwości

string

password

password: string

Wartość właściwości

string

userName

userName: string

Wartość właściwości

string

Szczegóły metody

signRequest(WebResourceLike)

Podpisuje żądanie z nagłówkiem Authentication (Uwierzytelnianie).

function signRequest(webResource: WebResourceLike): Promise<WebResourceLike>

Parametry

webResource
WebResourceLike

Element WebResourceLike do podpisania.

Zwraca

Promise<WebResourceLike>

Podpisany obiekt żądania.