# EntraIdApplicationResource.withClientSecret

- Module: [Aspire.Hosting.Azure.EntraId](/reference/api/typescript/aspire.hosting.azure.entraid.md)
- Defined on: [EntraIdApplicationResource](/reference/api/typescript/aspire.hosting.azure.entraid/entraidapplicationresource.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`

Adds a client secret credential to this Entra ID application.

## Definition

```typescript
interface EntraIdApplicationResource {
  // ... omitted for brevity
  withClientSecret(clientSecret: ParameterResource): EntraIdApplicationResource;
}
```

## Signature

```typescript
withClientSecret(clientSecret: ParameterResource): EntraIdApplicationResource
```

## Parameters

- `clientSecret` (`ParameterResource`)

## Returns

[EntraIdApplicationResource](/reference/api/typescript/aspire.hosting.azure.entraid/entraidapplicationresource.md) `builder`

## Defined on

- [EntraIdApplicationResource](/reference/api/typescript/aspire.hosting.azure.entraid/entraidapplicationresource.md) -- `handle`
