mrparkers / terraform-provider-keycloak

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

keycloak_custom_identity_provider_mapper missing user attribute value #816

Open nunopedrosilva opened 1 year ago

nunopedrosilva commented 1 year ago

When defining an hardcoded keycloak_custom_identity_provider_mapper, there is no matching for User Attribute Value.

resource "keycloak_custom_identity_provider_mapper" "realm_mapper" { realm = keycloak_realm.realm.id name = "realm mapper" identity_provider_alias = keycloak_oidc_identity_provider.realm_identity_provider.alias identity_provider_mapper = "hardcoded-attribute-idp-mapper"

extra_config with syncMode is required in Keycloak 10+

extra_config = { syncMode = "INHERIT" attribute = "realmattributeexample" (this one works) attribute_value = "dummyattributevalue" (there isn't a know match to the User Attribute Value, and neither an error is thrown) } }