# EntraIdClientSecretCredential

- Kind: `class`
- Package: [Aspire.Hosting.Azure.EntraId](/reference/api/csharp/aspire.hosting.azure.entraid.md)
- Version: `17.0.0-preview.1.26567.5`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs)
- Inherits: [EntraIdClientCredential](/reference/api/csharp/aspire.hosting.azure.entraid/entraidclientcredential.md)

A client secret credential for an Entra ID application.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public sealed class EntraIdClientSecretCredential
    : Aspire.Hosting.Azure.EntraIdClientCredential
{
    // ...
}
```

## Remarks

Maps to `SourceType = "ClientSecret"` in Microsoft.Identity.Web configuration.

## Constructors

- [EntraIdClientSecretCredential](/reference/api/csharp/aspire.hosting.azure.entraid/entraidclientsecretcredential/constructors.md#constructor)

## Properties

- [ClientSecret](/reference/api/csharp/aspire.hosting.azure.entraid/entraidclientsecretcredential/properties.md#clientsecret) : `ParameterResource` `get; init` -- Gets the client secret as a parameter resource.
- [SourceType](/reference/api/csharp/aspire.hosting.azure.entraid/entraidclientsecretcredential/properties.md#sourcetype) : `string` `get` -- Gets the `SourceType` string used in the Microsoft.Identity.Web configuration.
