terraform-provider-keycloak
terraform-provider-keycloak copied to clipboard
Fix 919 provider crash
Fix for #919
Always refresh token after create realm.
Rationale is this should not be expensive since:
- Creating a realm is relatively rare
- In a lot of scenarios the token refresh would happen anyway if a new realm is created, when it's referenced elsewhere
Existing acceptance test testKeycloakDefaultRoles_basic
should cover this, provided the acceptance tests include Keycloak v22 and newer. For that, the following PRs exist:
- #921 Test Keycloak images for v22 & v23
- #920 Include v22 in acc. tests (draft, pending #921)