MSIVmTokenCredentials class
Azure でプロビジョニングされた仮想マシン上のマネージド サービス ID トークン資格情報に関する情報を提供します。
- Extends
コンストラクター
| MSIVm |
継承されたプロパティ
| resource | Azure リソース エンドポイント。
|
メソッド
| get |
アクセス トークンで応答する、Azure VM でホストされているサービス エンドポイントに POST 要求を準備して送信します。 |
継承されたメソッド
| parse |
tokenResponse json 文字列をオブジェクトに解析し、最初のレベルのプロパティを camelCase に変換します。 このメソッドは tokenResponse の標準化を試みます |
| sign |
Authentication ヘッダーを使用して要求に署名します。 |
コンストラクターの詳細
MSIVmTokenCredentials(MSIVmOptions)
プロパティの詳細
apiVersion
apiVersion: string
プロパティ値
string
clientId
clientId?: string
プロパティ値
string
httpMethod
identityId
identityId?: string
プロパティ値
string
msiEndpoint
msiEndpoint: string
プロパティ値
string
objectId
objectId?: string
プロパティ値
string
継承されたプロパティの詳細
resource
Azure リソース エンドポイント。
- 既定では、環境から Azure Resource Manager:AzureCloud が使用されます。 「https://management.azure.com/"
- ServiceManagement (ASM) の場合: "https://management.core.windows.net/"
- Azure KeyVault の場合: "https://vault.azure.net"
- Azure Batch の場合: "https://batch.core.windows.net"
- Azure Active Directory Graph の場合: "https://graph.windows.net"
resource: string
プロパティ値
string
メソッドの詳細
getToken()
アクセス トークンで応答する、Azure VM でホストされているサービス エンドポイントに POST 要求を準備して送信します。
function getToken(): Promise<MSITokenResponse>
戻り値
Promise<MSITokenResponse>
tokenResponse(tokenTypeとaccessTokenは2つの重要なプロパティ)でPromiseします。
継承済みメソッドの詳細
parseTokenResponse(string)
tokenResponse json 文字列をオブジェクトに解析し、最初のレベルのプロパティを camelCase に変換します。 このメソッドは tokenResponse の標準化を試みます
function parseTokenResponse(body: string): TokenResponse
パラメーター
- body
-
string
json 文字列
戻り値
TokenResponse
tokenResponse (tokenType と accessToken は 2 つの重要なプロパティです)。
signRequest(WebResource)
Authentication ヘッダーを使用して要求に署名します。
function signRequest(webResource: WebResource): Promise<WebResource>
パラメーター
- webResource
- WebResource
署名する WebResource。
戻り値
Promise<WebResource>
署名された WebResource を使用した Promise。