# EntraIdTokenExchangeOptions

- Module: [Aspire.Hosting.Azure.EntraId](/reference/api/go/aspire.hosting.azure.entraid.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `struct`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Optional token exchange settings for a pre-existing managed identity federation trust.

## Definition

```go
type EntraIdTokenExchangeOptions struct {
    TokenExchangeUrl       *string `json:"TokenExchangeUrl"`
    TokenExchangeAuthority *string `json:"TokenExchangeAuthority"`
}
```

## Fields

- `TokenExchangeUrl`: `*string` `optional` -- Gets the token exchange audience. Defaults to api://AzureADTokenExchange when omitted.
- `TokenExchangeAuthority`: `*string` `optional` -- Gets the token exchange authority URL when it differs from the application's authority.
