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

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

password

Heslo

userName

Uživatelské jméno

Metody

signRequest(WebResourceLike)

Podepíše žádost 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

Autorizační schéma. Výchozí hodnota je "Basic". Další informace o autorizačních schématech 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 žádost hlavičkou Ověřování.

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

Parametry

webResource
WebResourceLike

WebResourceLike k podepsání.

Návraty

Promise<WebResourceLike>

Objekt podepsaného požadavku.