Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ottramst committed Nov 25, 2024
1 parent 19738f7 commit a7007eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
}...),
Expand All @@ -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"),
}...),
Expand Down

0 comments on commit a7007eb

Please sign in to comment.