ManagedIdentityApplication class
Class to initialize a managed identity and identify the service
Methods
acquire |
Acquire an access token from the cache or the managed identity |
get |
Determine the Managed Identity Source based on available environment variables. This API is consumed by Azure Identity SDK. |
Constructor Details
ManagedIdentityApplication(ManagedIdentityConfiguration)
new ManagedIdentityApplication(configuration?: ManagedIdentityConfiguration)
Parameters
- configuration
- ManagedIdentityConfiguration
Method Details
acquireToken(ManagedIdentityRequestParams)
Acquire an access token from the cache or the managed identity
function acquireToken(managedIdentityRequestParams: ManagedIdentityRequestParams): Promise<AuthenticationResult>
Parameters
- managedIdentityRequestParams
- ManagedIdentityRequestParams
Returns
Promise<AuthenticationResult>
the access token
getManagedIdentitySource()
Determine the Managed Identity Source based on available environment variables. This API is consumed by Azure Identity SDK.
function getManagedIdentitySource(): ManagedIdentitySourceNames
Returns
ManagedIdentitySourceNames
ManagedIdentitySourceNames - The Managed Identity source's name