@azure/identity
Version:
Provides credential implementations for Azure SDK libraries that can authenticate with Microsoft Entra ID
37 lines • 1.79 kB
TypeScript
import type { TokenCredentialOptions } from "../../tokenCredentialOptions.js";
/**
* Options to send on the {@link ManagedIdentityCredential} constructor.
* This variation supports `clientId` and not `resourceId`, since only one of both is supported.
*/
export interface ManagedIdentityCredentialClientIdOptions extends TokenCredentialOptions {
/**
* The client ID of the user - assigned identity, or app registration(when working with AKS pod - identity).
*/
clientId?: string;
}
/**
* Options to send on the {@link ManagedIdentityCredential} constructor.
* This variation supports `resourceId` and not `clientId`, since only one of both is supported.
*/
export interface ManagedIdentityCredentialResourceIdOptions extends TokenCredentialOptions {
/**
* Allows specifying a custom resource Id.
* In scenarios such as when user assigned identities are created using an ARM template,
* where the resource Id of the identity is known but the client Id can't be known ahead of time,
* this parameter allows programs to use these user assigned identities
* without having to first determine the client Id of the created identity.
*/
resourceId: string;
}
/**
* Options to send on the {@link ManagedIdentityCredential} constructor.
* This variation supports `objectId` as a constructor argument.
*/
export interface ManagedIdentityCredentialObjectIdOptions extends TokenCredentialOptions {
/**
* Allows specifying the object ID of the underlying service principal used to authenticate a user-assigned managed identity.
* This is an alternative to providing a client ID or resource ID and is not required for system-assigned managed identities.
*/
objectId: string;
}
//# sourceMappingURL=options.d.ts.map