Sdílet prostřednictvím


BasicAuthenticationCredentials class

Jednoduchý <xref:ServiceClientCredential>, který se ověřuje pomocí uživatelského jména a hesla.

Konstruktory

BasicAuthenticationCredentials(string, string, string)

Vytvoří nový objekt BasicAuthenticationCredentials.

Vlastnosti

authorizationScheme

Schéma autorizace. Výchozí hodnota je "Basic". Další informace o schématech autorizace najdete tady: https://developer.mozilla.org/docs/Web/HTTP/Authentication#authentication_schemes

password

Heslo

userName

Uživatelské jméno

Metody

signRequest(WebResourceLike)

Podepíše požadavek hlavičkou Ověřování.

Podrobnosti konstruktoru

BasicAuthenticationCredentials(string, string, string)

Vytvoří nový objekt BasicAuthenticationCredentials.

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

Parametry

userName

string

Uživatelské jméno.

password

string

Heslo.

authorizationScheme

string

Schéma autorizace.

Podrobnosti vlastnosti

authorizationScheme

Schéma autorizace. Výchozí hodnota je "Basic". Další informace o schématech autorizace najdete tady: https://developer.mozilla.org/docs/Web/HTTP/Authentication#authentication_schemes

authorizationScheme: string

Hodnota vlastnosti

string

password

Heslo

password: string

Hodnota vlastnosti

string

userName

Uživatelské jméno

userName: string

Hodnota vlastnosti

string

Podrobnosti metody

signRequest(WebResourceLike)

Podepíše požadavek hlavičkou Ověřování.

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

Parametry

webResource
WebResourceLike

WebResourceLike, který se má podepsat.

Návraty

Promise<WebResourceLike>

Podepsaný objekt požadavku.