# EntraIdApplicationResource.WithAllowWebApiToBeAuthorizedByACL

- 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 ACL-based authorization for daemon-to-API scenarios.

## Definition

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

## Signature

```go
WithAllowWebApiToBeAuthorizedByACL() 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`
