# WithBitwardenReferenceAccessToken

- Module: [CommunityToolkit.Aspire.Hosting.Bitwarden.SecretManager](/reference/api/go/communitytoolkit.aspire.hosting.bitwarden.secretmanager.md)
- Version: `13.6.1`
- Kind: `method`
- Defined on: `ResourceWithEnvironment`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

Overrides the Bitwarden access token injected into the connection for `source`. By default the management token is used. Supply a least-privilege read-only token here.

## Definition

```go
func (ResourceWithEnvironment) WithBitwardenReferenceAccessToken(
    source BitwardenSecretManagerResource,
    accessToken ParameterResource,
) ResourceWithEnvironment
```

## Parameters

- `source` ([`BitwardenSecretManagerResource`](/reference/api/go/communitytoolkit.aspire.hosting.bitwarden.secretmanager/bitwardensecretmanagerresource.md)) -- The Bitwarden resource whose connection name to target.
- `accessToken` (`ParameterResource`) -- The access token parameter for this connection.

## Returns

`ResourceWithEnvironment` -- The destination resource builder.

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

## Applies to

- `CSharpAppResource`
- `ContainerResource`
- `DotnetToolResource`
- `ExecutableResource`
- `ProjectResource`
