A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/javascript/api/@azure/identity/managedidentitycredential below:

ManagedIdentityCredential class | Microsoft Learn

ManagedIdentityCredential class Constructor Details ManagedIdentityCredential(ManagedIdentityCredentialClientIdOptions)

Creates an instance of ManagedIdentityCredential with a client ID

new ManagedIdentityCredential(options?: ManagedIdentityCredentialClientIdOptions)
Parameters ManagedIdentityCredential(ManagedIdentityCredentialObjectIdOptions)

Creates an instance of ManagedIdentityCredential with an object ID

new ManagedIdentityCredential(options?: ManagedIdentityCredentialObjectIdOptions)
Parameters ManagedIdentityCredential(ManagedIdentityCredentialResourceIdOptions)

Creates an instance of ManagedIdentityCredential with a resource ID

new ManagedIdentityCredential(options?: ManagedIdentityCredentialResourceIdOptions)
Parameters ManagedIdentityCredential(string, TokenCredentialOptions)

Creates an instance of ManagedIdentityCredential with the client ID of a user-assigned identity, or app registration (when working with AKS pod-identity).

new ManagedIdentityCredential(clientId: string, options?: TokenCredentialOptions)
Parameters
clientId

string

The client ID of the user-assigned identity, or app registration (when working with AKS pod-identity).

Method Details getToken(string | string[], GetTokenOptions)

Authenticates with Microsoft Entra ID and returns an access token if successful. If authentication fails, a CredentialUnavailableError will be thrown with the details of the failure. If an unexpected error occurs, an AuthenticationError will be thrown with the details of the failure.

function getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>
Parameters
scopes

string | string[]

The list of scopes for which the token will have access.

options
GetTokenOptions

The options used to configure any requests this TokenCredential implementation might make.

Returns

Promise<AccessToken>


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4