# EntraIdApplicationResource.WithSignedAssertionFile

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

Appends a signed assertion file credential, such as an AKS workload identity token.

## Definition

```go
type EntraIdApplicationResource interface {
    // ... omitted for brevity
    WithSignedAssertionFile(options ...*WithSignedAssertionFileOptions) EntraIdApplicationResource
}
```

## Signature

```go
WithSignedAssertionFile(options ...*WithSignedAssertionFileOptions) EntraIdApplicationResource
```

## Parameters

- `options` (`...*WithSignedAssertionFileOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*WithSignedAssertionFileOptions` argument.

- `FilePath` (`*string`) -- The token file path on the consumer. Omit to use the consumer's AZURE_FEDERATED_TOKEN_FILE setting.

## Returns

[`EntraIdApplicationResource`](/reference/api/go/aspire.hosting.azure.entraid/entraidapplicationresource.md) -- The registration builder.

Returns a handle; failures surface later via `Err()`.

## Defined on

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