From fc26653cadfa07ef5ba3384b0c68b2e93d718585 Mon Sep 17 00:00:00 2001 From: Nikola Staletovic VegaIT <102167078+stale-vegait@users.noreply.github.com> Date: Fri, 10 Nov 2023 16:43:04 +0100 Subject: [PATCH] fix: set the correct value for the identityProviderMapper when using keycloak-oidc identity provider (#850) --- ..._keycloak_user_template_importer_identity_provider_mapper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/resource_keycloak_user_template_importer_identity_provider_mapper.go b/provider/resource_keycloak_user_template_importer_identity_provider_mapper.go index fce246a9a..d315bd353 100644 --- a/provider/resource_keycloak_user_template_importer_identity_provider_mapper.go +++ b/provider/resource_keycloak_user_template_importer_identity_provider_mapper.go @@ -33,7 +33,7 @@ func getUserTemplateImporterIdentityProviderMapperFromData(ctx context.Context, return nil, err } - if identityProvider.ProviderId == "facebook" || identityProvider.ProviderId == "google" { + if identityProvider.ProviderId == "facebook" || identityProvider.ProviderId == "google" || identityProvider.ProviderId == "keycloak-oidc" { rec.IdentityProviderMapper = "oidc-username-idp-mapper" } else { rec.IdentityProviderMapper = fmt.Sprintf("%s-username-idp-mapper", identityProvider.ProviderId)