# EntraIdFederatedIdentityCredential

- 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 federated identity credential (FIC) with managed identity for an Entra ID application.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

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

## Remarks

Maps to `SourceType = "SignedAssertionFromManagedIdentity"` in Microsoft.Identity.Web configuration. The registration must trust a user-assigned managed identity in the same tenant, and the identity must be attached to the workload. This configuration does not create that trust or assign the identity. See [https://learn.microsoft.com/entra/workload-id/workload-identity-federation-config-app-trust-managed-identity](https://learn.microsoft.com/entra/workload-id/workload-identity-federation-config-app-trust-managed-identity).

## Constructors

- [EntraIdFederatedIdentityCredential(string)](/reference/api/csharp/aspire.hosting.azure.entraid/entraidfederatedidentitycredential/constructors.md#constructor-string) -- 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.

## Properties

- [ManagedIdentityClientId](/reference/api/csharp/aspire.hosting.azure.entraid/entraidfederatedidentitycredential/properties.md#managedidentityclientid) : `string?` `get` -- Gets the client ID of the user-assigned managed identity that supplies the signed assertion.
- [SourceType](/reference/api/csharp/aspire.hosting.azure.entraid/entraidfederatedidentitycredential/properties.md#sourcetype) : `string` `get` -- Gets the `SourceType` string used in the Microsoft.Identity.Web configuration.
- [TokenExchangeAuthority](/reference/api/csharp/aspire.hosting.azure.entraid/entraidfederatedidentitycredential/properties.md#tokenexchangeauthority) : `string?` `get; set` -- Gets or sets the token exchange authority URL.
- [TokenExchangeUrl](/reference/api/csharp/aspire.hosting.azure.entraid/entraidfederatedidentitycredential/properties.md#tokenexchangeurl) : `string?` `get; set` -- Gets or sets the token exchange URL for federated identity credential scenarios.
