Edit

Share via


ManagedIdentityApplication class

Class to initialize a managed identity and identify the service

Constructors

ManagedIdentityApplication(ManagedIdentityConfiguration)

Methods

acquireToken(ManagedIdentityRequestParams)

Acquire an access token from the cache or the managed identity

getManagedIdentitySource()

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

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

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