From 772bc7887e8690c37fd866b55e9bbbad05a7c8d5 Mon Sep 17 00:00:00 2001 From: Wilfred Dube Date: Tue, 7 Jan 2025 16:31:36 +0200 Subject: [PATCH] Added Organizations and OrganizationsEnabled fields to RealmPresentation --- docker-compose.yml | 8 +++++++- models.go | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index c467aad6..35f80da6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,4 +19,10 @@ services: retries: 5 volumes: - ./testdata/gocloak-realm.json:/opt/keycloak/data/import/gocloak-realm.json - entrypoint: ["/opt/keycloak/bin/kc.sh", "start-dev", "--features=preview", "--import-realm"] + entrypoint: + [ + "/opt/keycloak/bin/kc.sh", + "start-dev", + "--features=preview", + "--import-realm", + ] diff --git a/models.go b/models.go index 363fca37..8e438d7d 100644 --- a/models.go +++ b/models.go @@ -796,6 +796,8 @@ type RealmRepresentation struct { OfflineSessionIdleTimeout *int `json:"offlineSessionIdleTimeout,omitempty"` OfflineSessionMaxLifespan *int `json:"offlineSessionMaxLifespan,omitempty"` OfflineSessionMaxLifespanEnabled *bool `json:"offlineSessionMaxLifespanEnabled,omitempty"` + OrganizationsEnabled bool `json:"organizationsEnabled,omitempty"` + Organizations *[]interface{} `json:"organizations,omitempty"` OtpPolicyAlgorithm *string `json:"otpPolicyAlgorithm,omitempty"` OtpPolicyDigits *int `json:"otpPolicyDigits,omitempty"` OtpPolicyInitialCounter *int `json:"otpPolicyInitialCounter,omitempty"`