Skip to content
DocsTry Aspire
DocsTry

BitwardenSecretResource.asSecretId

Method
📦 CommunityToolkit.Aspire.Hosting.Bitwarden.SecretManager v13.5.0
interface BitwardenSecretResource {
// ... omitted for brevity
asSecretId(): IExpressionValue;
}

Signature

methodasSecretId
Returns an `IExpressionValue` that resolves to the Bitwarden secret identifier. Pass it to `WithEnvironment` to inject the secret ID as an environment variable. The app then uses the Bitwarden SDK to fetch the secret value at runtime.
asSecretId(): IExpressionValue
IExpressionValue

Defined on

This method is defined on the following type: