[KEYCLOAK-14299] - Do not create keys during startup but on-demand
This commit is contained in:
parent
6005503a3d
commit
bc901d0025
2 changed files with 1 additions and 2 deletions
|
@ -67,7 +67,7 @@ public class DefaultKeyManager implements KeyManager {
|
||||||
List<KeyProvider> providers = getProviders(realm);
|
List<KeyProvider> providers = getProviders(realm);
|
||||||
activeKey = getActiveKey(providers, realm, use, algorithm);
|
activeKey = getActiveKey(providers, realm, use, algorithm);
|
||||||
if (activeKey != null) {
|
if (activeKey != null) {
|
||||||
logger.warnv("Fallback key created: realm={0} algorithm={1} use={2}", realm.getName(), algorithm, use.name());
|
logger.infov("No keys found for realm={0} and algorithm={1} for use={2}. Generating keys.", realm.getName(), algorithm, use.name());
|
||||||
return activeKey;
|
return activeKey;
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -86,7 +86,6 @@ public class ApplianceBootstrap {
|
||||||
realm.setRegistrationEmailAsUsername(false);
|
realm.setRegistrationEmailAsUsername(false);
|
||||||
|
|
||||||
session.getContext().setRealm(realm);
|
session.getContext().setRealm(realm);
|
||||||
DefaultKeyProviders.createProviders(realm);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue