# EntraIdFederatedIdentityCredential Properties

- 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: `Properties`
- Members: `4`

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

<a id="managedidentityclientid"></a>

## ManagedIdentityClientId

- Name: `ManagedIdentityClientId`
- Modifiers: `nullable` `get`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs#L1183)

Gets the client ID of the user-assigned managed identity that supplies the signed assertion.

```csharp
public string? ManagedIdentityClientId { get; }
```

## Remarks

This is the identity's client ID, not the object (principal) ID used as the federated credential's subject. Microsoft Entra's managed-identity federation scenario supports user-assigned identities only. It is `null` when Aspire resolves the identity, in which case each consuming resource uses its own user-assigned managed identity or the one it was configured with.

<a id="sourcetype"></a>

## SourceType

- Name: `SourceType`
- Modifiers: `override` `get`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs#L1172)

Gets the `SourceType` string used in the Microsoft.Identity.Web configuration.

```csharp
public override string SourceType { get; }
```

<a id="tokenexchangeauthority"></a>

## TokenExchangeAuthority

- Name: `TokenExchangeAuthority`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs)

Gets or sets the token exchange authority URL.

```csharp
public string? TokenExchangeAuthority { get; set; }
```

## Remarks

Used when the issuer for token exchange differs from the application's authority.

<a id="tokenexchangeurl"></a>

## TokenExchangeUrl

- Name: `TokenExchangeUrl`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs)

Gets or sets the token exchange URL for federated identity credential scenarios.

```csharp
public string? TokenExchangeUrl { get; set; }
```

## Remarks

If not specified, defaults to `api://AzureADTokenExchange`, or the audience of the application's cloud when the credential is backed by a managed identity resource.
