Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(feat) Location Basic Auth and User Auth Methods … #202

Merged
merged 12 commits into from
Mar 23, 2023
Prev Previous commit
Next Next commit
Update GNUmakefile to v2.5.0
  • Loading branch information
willguibr committed Mar 11, 2023
commit b0ab9cb0917323e44fa874daac1c5aac64ba9864
6 changes: 3 additions & 3 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ build: fmtcheck
build13: GOOS=$(shell go env GOOS)
build13: GOARCH=$(shell go env GOARCH)
ifeq ($(OS),Windows_NT) # is Windows_NT on XP, 2000, 7, Vista, 10...
build13: DESTINATION=$(APPDATA)/terraform.d/plugins/$(ZIA_PROVIDER_NAMESPACE)/2.4.5/$(GOOS)_$(GOARCH)
build13: DESTINATION=$(APPDATA)/terraform.d/plugins/$(ZIA_PROVIDER_NAMESPACE)/2.5.0/$(GOOS)_$(GOARCH)
else
build13: DESTINATION=$(HOME)/.terraform.d/plugins/$(ZIA_PROVIDER_NAMESPACE)/2.4.5/$(GOOS)_$(GOARCH)
build13: DESTINATION=$(HOME)/.terraform.d/plugins/$(ZIA_PROVIDER_NAMESPACE)/2.5.0/$(GOOS)_$(GOARCH)
endif
build13: fmtcheck
go mod tidy && go mod vendor
@echo "==> Installing plugin to $(DESTINATION)"
@mkdir -p $(DESTINATION)
go build -o $(DESTINATION)/terraform-provider-zia_v2.4.5
go build -o $(DESTINATION)/terraform-provider-zia_v2.5.0

test: fmtcheck
go test $(TEST) || exit 1
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.2
2.5.0
13 changes: 13 additions & 0 deletions zia/data_source_zia_user_management_users.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"log"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
"github.com/zscaler/zscaler-sdk-go/zia/services/usermanagement"
)

Expand Down Expand Up @@ -84,6 +85,18 @@ func dataSourceUserManagement() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"auth_methods": {
Type: schema.TypeSet,
Optional: true,
Description: "Accepted Authentication Methods",
Elem: &schema.Schema{
Type: schema.TypeString,
ValidateFunc: validation.StringInSlice([]string{
"BASIC",
"DIGEST",
}, false),
},
},
"is_auditor": {
Type: schema.TypeString,
Computed: true,
Expand Down