<PackageReference Include="Azure.Core" Version="1.53.0" />

Azure.Identity.ClientSecretCredential

Enables authentication to Microsoft Entra ID using a client secret that was generated for an App Registration. More information on how to configure a client secret can be found at .

Protected constructor for mocking.

public ClientSecretCredential(string tenantId, string clientId, string clientSecret)

Creates an instance of the ClientSecretCredential with the details needed to authenticate against Microsoft Entra ID with a client secret.

public ClientSecretCredential(string tenantId, string clientId, string clientSecret, ClientSecretCredentialOptions options)

Creates an instance of the ClientSecretCredential with the details needed to authenticate against Microsoft Entra ID with a client secret.

public ClientSecretCredential(string tenantId, string clientId, string clientSecret, TokenCredentialOptions options)

Creates an instance of the ClientSecretCredential with the details needed to authenticate against Microsoft Entra ID with a client secret.