[keycloak-user] Configuring keycloak with JSON instead of UI

Sarp Kaya akaya at expedia.com
Wed Feb 15 01:06:30 EST 2017


Hello,

I’m aware of keycloak import/export functionality but when I export keycloak configuration it exports with bunch of ids. I’m guessing this is useful for back-ups or duplicating the entire environment.
My problem is, say if you have different environments with slight configuration differences (because environments probably have different keys, URLs etc.) but would like to keep majority of the configuration the same; then this export/import becomes unusable:


1)       Everything has an id, so therefore just exporting and then importing singular item will not work due to id mismatch.

2)       During the import, it’s not possible to select what can be overwritten and what can be skipped. Importing condition applies for all.

My question is, what is the best practice to configure keycloak in multiple environments?


More information about the keycloak-user mailing list