1
votes

Let's say we have a multi-module applications which uses Keycloak authentication mechanism. We would like to automate as much as possible installation process of Keycloak with custom predefined realm settings. We would like to avoid using Keycloak API to configure realm settings while installation process.

Is there any known best practice to automatically create Keycloak schema based on predefined configuration values with some kind of template?

1

1 Answers

0
votes

You can import a Realm from file via CLI commands. This can be used to bootstrap a Keycloak installation. That file can be exported beforehand and then modified, so you will have a template. For more information, see https://www.keycloak.org/docs/2.5/server_admin/topics/export-import.html