다음을 통해 공유


BasicAuthenticationCredentials class

생성자

BasicAuthenticationCredentials(string, string, string)

새 BasicAuthenticationCredentials 개체를 만듭니다.

속성

authorizationScheme
password
userName

메서드

signRequest(WebResourceLike)

인증 헤더를 사용하여 요청에 서명합니다.

생성자 세부 정보

BasicAuthenticationCredentials(string, string, string)

새 BasicAuthenticationCredentials 개체를 만듭니다.

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

매개 변수

userName

string

사용자 이름.

password

string

Password.

authorizationScheme

string

권한 부여 체계입니다.

속성 세부 정보

authorizationScheme

authorizationScheme: string

속성 값

string

password

password: string

속성 값

string

userName

userName: string

속성 값

string

메서드 세부 정보

signRequest(WebResourceLike)

인증 헤더를 사용하여 요청에 서명합니다.

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

매개 변수

webResource
WebResourceLike

서명할 WebResourceLike입니다.

반환

Promise<WebResourceLike>

서명된 요청 개체입니다.