Open jhelsethbushel opened 1 year ago
https://github.com/mrparkers/terraform-provider-keycloak/blob/aec21154d7ae77fcfc14db303bef5e1cc2e07036/keycloak/custom_user_federation.go#L58 function I was referencing for my description for this issue.
I had two keycloak servers I was working with and only encountered this error on one of them. On the server that was not returning the enabled
property I changed the priority value in the admin panel and clicked save. When I reloaded the page, the api was now returning the enabled
property and the terraform import for the customer user federation worked like it was supposed to.
I will keep this issue open because a missing optional enabled
property should not prevent this import operation from working.
Receiving an error when trying to import a custom user federation from keycloak. Here is the input:
Here is the output:
When I was looking through the code in github I found that line 58 of
keycloak/custom_user_federation.go
is looking to parse theenabled
property of the custom user federation resource. When I look at the server output from our Keycloak18.0.2
wildfly server,enabled
is not a returned property in the json. Is there a work around for this, or is it a bug? Either a bug in the terraform provider, or the keycloak api?