# EntraIdFederatedIdentityCredential Constructors

- Package: [Aspire.Hosting.Azure.EntraId](/reference/api/csharp/aspire.hosting.azure.entraid.md)
- Type: [EntraIdFederatedIdentityCredential](/reference/api/csharp/aspire.hosting.azure.entraid/entraidfederatedidentitycredential.md)
- Kind: `Constructors`
- Members: `1`

A federated identity credential (FIC) with managed identity for an Entra ID application.

<a id="constructor"></a>
<a id="constructor-string"></a>

## EntraIdFederatedIdentityCredential(string)

- Name: `Constructor(string)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs#L1154-L1164)

Initializes a new instance of the [EntraIdFederatedIdentityCredential](/reference/api/csharp/aspire.hosting.azure.entraid/entraidfederatedidentitycredential.md) class for a managed identity that Aspire does not manage.

```csharp
public sealed class EntraIdFederatedIdentityCredential
{
    public EntraIdFederatedIdentityCredential(
        string managedIdentityClientId)
    {
        // ...
    }
}
```

## Parameters

- `managedIdentityClientId` (`string`)
  The client ID of the user-assigned managed identity that supplies the signed assertion.

## Exceptions

- `ArgumentNullException` -- Thrown when `managedIdentityClientId` is `null`.
- `ArgumentException` -- Thrown when `managedIdentityClientId` is empty or is not a GUID.
