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

IdentityProviderMapper Generic vs Specific #803

Open jhelsethbushel opened 1 year ago

jhelsethbushel commented 1 year ago

On https://github.com/mrparkers/terraform-provider-keycloak/blob/master/provider/resource_keycloak_user_template_importer_identity_provider_mapper.go#L36 facebook and google get the value oidc-username-idp-mapper. In the else part of the block, it is constructed by using a string and identity provider id. In our code base that broke the setting for the Identity Provider. When we built the mapper by hand in the admin portal, it assigned the IdentityProviderMapper value oidc-username-idp-mapper and it did not break. What is the difference between the values, and is there a way to override the value? Or do we need to have some another template to finish the configuration properly?

jhelsethbushel commented 1 year ago

System setup keycloak provider: 4.0.1 terraform: v1.1.7 keycloak: 18.0.2 Wildfly