# EntraIdApplicationResource.WithIdTokenIssuance

- 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`

Enables ID-token issuance through implicit and hybrid flows for a registration created by Aspire.

## Remarks

Enables ID-token issuance only, not implicit access-token issuance. Not needed for authorization-code-only flows;
prefer authorization code flow with PKCE for new production applications.
Throws for existing registrations. Configure their Authentication settings separately.

## Definition

```go
type EntraIdApplicationResource interface {
    // ... omitted for brevity
    WithIdTokenIssuance() EntraIdApplicationResource
}
```

## Signature

```go
WithIdTokenIssuance() EntraIdApplicationResource
```

## Returns

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

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

## Defined on

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