mrparkers / terraform-provider-keycloak

Terraform provider for Keycloak
https://registry.terraform.io/providers/mrparkers/keycloak/latest/docs
MIT License
607 stars 295 forks source link

keycloak_user_template_importer_identity_provider_mapper creates invalid mapper for keycloak_oidc #849

Closed stale-vegait closed 9 months ago

stale-vegait commented 1 year ago

When using keycloak_user_template_importer_identity_provider_mapper to create a username mapper for a keycloak_oidc identity provider the mapper that ends up being created is invalid. It cannot be opened on the UI nor executed when logging in with the associated provider. 

This is due to the invalid value being passed for "identityProviderMapper". The expected value is  "oidc-username-idp-mapper" and the value that gets passed is "keycloak-oidc-username-idp-mapper". Updating the value in the DB manually fixes the issue.

stale-vegait commented 1 year ago

It's the same issue as #803