<PackageReference Include="Azure.Identity" Version="1.17.0" />

Azure.Identity.ClientSecretCredential

public class ClientSecretCredential : TokenCredential
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 .
namespace Azure.Identity { public class ClientSecretCredential { protected ClientSecretCredential(); public ClientSecretCredential(string tenantId, string clientId, string clientSecret); public ClientSecretCredential(string tenantId, string clientId, string clientSecret, ClientSecretCredentialOptions options); public ClientSecretCredential(string tenantId, string clientId, string clientSecret, TokenCredentialOptions options); } }