BasicAuthenticationCredentials class
ユーザー名とパスワードで認証する簡単な <xref:ServiceClientCredential>。
コンストラクター
| Basic |
新しい BasicAuthenticationCredentials オブジェクトを作成します。 |
プロパティ
| authorization |
承認スキーム。 既定値は "Basic" です。 承認スキームの詳細については、以下を参照してください: https://developer.mozilla.org/docs/Web/HTTP/Authentication#authentication_schemes |
| password | パスワード |
| user |
ユーザー名 |
メソッド
| sign |
Authentication ヘッダーを使用して要求に署名します。 |
コンストラクターの詳細
BasicAuthenticationCredentials(string, string, string)
新しい BasicAuthenticationCredentials オブジェクトを作成します。
new BasicAuthenticationCredentials(userName: string, password: string, authorizationScheme?: string)
パラメーター
- userName
-
string
ユーザー名。
- password
-
string
パスワード。
- authorizationScheme
-
string
承認スキーム。
プロパティの詳細
authorizationScheme
承認スキーム。 既定値は "Basic" です。 承認スキームの詳細については、以下を参照してください: https://developer.mozilla.org/docs/Web/HTTP/Authentication#authentication_schemes
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>
署名された要求オブジェクト。