Package version:

Class OnBehalfOfCredential

Enables authentication to Microsoft Entra ID using the On Behalf Of flow.

Implements

Constructors

Methods

Constructors

Methods

  • 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.

    Parameters

    • scopes: string | {}

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

    • options: GetTokenOptions = {}

      The options used to configure the underlying network requests.

    Returns Promise<AccessToken>