From 4ff80a5c17f8025f646e8bafe424df6051e6999d Mon Sep 17 00:00:00 2001 From: Florian Preinstorfer Date: Mon, 18 Nov 2024 12:31:41 +0100 Subject: [PATCH] Rename to hide_on_login_page to hide_on_login It seems that Keycloak 26 deprecated hideOnLoginPage - see https://www.keycloak.org/docs/latest/upgrading/index.html#improving-performance-for-selection-of-identity-providers Using the deprecated hideOnLoginPage yields: Keycloak_identity_provider[x on y]/hide_on_login_page: defined 'hide_on_login_page' as 'true' (corrective) --- lib/puppet/type/keycloak_identity_provider.rb | 4 ++-- spec/unit/puppet/type/keycloak_identity_provider_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/puppet/type/keycloak_identity_provider.rb b/lib/puppet/type/keycloak_identity_provider.rb index 5277158a..18a95228 100644 --- a/lib/puppet/type/keycloak_identity_provider.rb +++ b/lib/puppet/type/keycloak_identity_provider.rb @@ -127,8 +127,8 @@ # BEGIN: oidc - newproperty(:hide_on_login_page, boolean: true) do - desc 'hideOnLoginPage' + newproperty(:hide_on_login, boolean: true) do + desc 'hideOnLogin' newvalues(:true, :false) defaultto :false end diff --git a/spec/unit/puppet/type/keycloak_identity_provider_spec.rb b/spec/unit/puppet/type/keycloak_identity_provider_spec.rb index fc96bd4e..bc70d4c8 100644 --- a/spec/unit/puppet/type/keycloak_identity_provider_spec.rb +++ b/spec/unit/puppet/type/keycloak_identity_provider_spec.rb @@ -96,7 +96,7 @@ authenticate_by_default: :false, link_only: :false, first_broker_login_flow_alias: 'first broker login', - hide_on_login_page: :false, + hide_on_login: :false, validate_signature: :false, ui_locales: :false, backchannel_supported: :false, @@ -162,7 +162,7 @@ :add_read_token_role_on_create, :authenticate_by_default, :link_only, - :hide_on_login_page, + :hide_on_login, :validate_signature, :ui_locales, :backchannel_supported,