ManagedIdentityApplication class
類別以初始化受管理身份並識別服務
方法
| acquire |
從快取或管理身份取得存取權杖 |
| get |
根據可用的環境變數決定受管理身份來源。 此 API 由 Azure Identity SDK 使用。 |
建構函式詳細資料
ManagedIdentityApplication(ManagedIdentityConfiguration)
new ManagedIdentityApplication(configuration?: ManagedIdentityConfiguration)
參數
- configuration
- ManagedIdentityConfiguration
方法詳細資料
acquireToken(ManagedIdentityRequestParams)
從快取或管理身份取得存取權杖
function acquireToken(managedIdentityRequestParams: ManagedIdentityRequestParams): Promise<AuthenticationResult>
參數
- managedIdentityRequestParams
- ManagedIdentityRequestParams
傳回
Promise<AuthenticationResult>
存取權杖
getManagedIdentitySource()
根據可用的環境變數決定受管理身份來源。 此 API 由 Azure Identity SDK 使用。
function getManagedIdentitySource(): ManagedIdentitySourceNames
傳回
ManagedIdentitySourceNames - 管理身份來源的名稱