[keycloak-user] Initial configuration
Bill Burke
bburke at redhat.com
Fri Aug 18 10:39:37 EDT 2017
Have you seen the import/export stuff in our documentation? Keycloak can
be booted to import configuration. Every SPI provider has init() and
postInit() methods which are called at Boot. I wonder if we should have
a Bootstrap SPI that was just empty that allowed people to do stuff at boot?
On 8/18/17 2:32 AM, Gaétan Collaud wrote:
> Hi,
>
> This question interest me as well.
>
> For now I do an export and when I have to create a new keycloak instance, I
> create the realm from the export that I made.
>
> I use docker to create a keycloak image with my custom providers. The only
> thing that is missing is the configuration at the first startup (that has
> to be done manually)
>
> Best regards,
>
> Gaetan
>
> Le jeu. 17 août 2017 à 18:39, Vanecek Stepan <Stepan.Vanecek at finnova.com> a
> écrit :
>
>> Hello everyone,
>>
>> we are trying to automate the initial configuration of Kyecloak(realm
>> creation,...). We would like to use KyecloakSession for that. At the
>> moment, it is available in class MyEventListenerProvider that defines our
>> Event Listener SPI's onEvent methods.
>>
>> Is it possible to use this KeycloakSession outside of that class as well?
>> For example, we thought of running a separate thread in
>> MyEventListenerProviderFactory in init function that would sleep until
>> keycloak is up and then perform the initial configuration with
>> KeycloakSession. If so, how? If not, is there any other possibility?
>>
>> Thank you very much in advance.
>>
>> Kind regards,
>> Stepan Vanecek
>> _______________________________________________
>> keycloak-user mailing list
>> keycloak-user at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
More information about the keycloak-user
mailing list