You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is happening because some of these protocol mapper attributes are quoted booleans (ex: "true"), and some of the default mappers created by Keycloak had an empty string for some of these values instead of "false". So the API was sending back empty strings, and we were handing those empty strings to strconv.ParseBool, which was giving you that particular error. I opened #622 to treat these empty strings as false.
For a temporary workaround, you can go to this client scope mapper in the GUI, and find every switch that's currently set to "OFF". Toggle each of these to "ON", then "OFF" again, then click "Save". This won't functionally change anything in Keycloak, but it will cause the UI to send the correct "false" string to the API, which means the Terraform import should work.
When trying to execute:
in order to import an existing client scopes / mapper, I get the following error message:
The Terraform resources to import (this is actually the default "realms" roles client scope and its mapper when creating a realm via Keycloak Web UI):
Versions used:
The text was updated successfully, but these errors were encountered: