你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

BasicAuthenticationCredentials class

构造函数

BasicAuthenticationCredentials(string, string, string)

创建新的 BasicAuthenticationCredentials 对象。

属性

authorizationScheme
password
userName

方法

signRequest(WebResourceLike)

使用 Authentication 标头对请求进行签名。

构造函数详细信息

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)

使用 Authentication 标头对请求进行签名。

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

参数

webResource
WebResourceLike

要签名的 WebResourceLike。

返回

Promise<WebResourceLike>

已签名的请求对象。