KEYCLOAK-17888 This reverts [KEYCLOAK-14299] - Do not create keys during startup but on-demand

Restoring the original realm key provisioning process due to undesirable behaviour when using
on demand provisoning under load (duplicate keys created).
This commit is contained in:
Sam Dammers 2021-04-28 14:41:40 +10:00 committed by Pedro Igor
parent 20fc430be0
commit e73c6103cf

View file

@ -26,6 +26,7 @@ import org.keycloak.models.RealmModel;
import org.keycloak.models.RoleModel;
import org.keycloak.models.UserCredentialModel;
import org.keycloak.models.UserModel;
import org.keycloak.models.utils.DefaultKeyProviders;
import org.keycloak.representations.idm.CredentialRepresentation;
import org.keycloak.services.ServicesLogger;
@ -86,6 +87,7 @@ public class ApplianceBootstrap {
realm.setRegistrationEmailAsUsername(false);
session.getContext().setRealm(realm);
DefaultKeyProviders.createProviders(realm);
return true;
}