diff --git a/CHANGELOG.md b/CHANGELOG.md index 2df61d1..c89a1cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## [Unreleased] +## v0.4.2 + +* Fix bug where all auth methods were being required for the client + ## v0.4.1 * Add `ResourceWithConfigure` to all resources diff --git a/internal/provider/provider.go b/internal/provider/provider.go index da12d3a..2b97da1 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -67,6 +67,7 @@ func (p *VaultwardenProvider) Schema(_ context.Context, _ provider.SchemaRequest Optional: true, Validators: []validator.String{ stringvalidator.AtLeastOneOf(path.Expressions{ + path.MatchRoot("admin_token"), path.MatchRoot("client_id"), path.MatchRoot("client_secret"), }...), @@ -78,6 +79,7 @@ func (p *VaultwardenProvider) Schema(_ context.Context, _ provider.SchemaRequest Optional: true, Validators: []validator.String{ stringvalidator.AtLeastOneOf(path.Expressions{ + path.MatchRoot("admin_token"), path.MatchRoot("client_id"), path.MatchRoot("client_secret"), }...),