KEYCLOAK-13119 Fixing migration to Keycloak 2.2.0+ to correctly preserve default identity provider

This commit is contained in:
Ronaldo Spido 2020-02-27 08:17:39 -05:00 committed by Stian Thorgersen
parent 49b1dbba68
commit 1e0fcc4883

View file

@ -417,6 +417,7 @@ public class DefaultAuthenticationFlows {
Map<String, String> config = new HashMap<>();
config.put("defaultProvider", defaultProvider);
configModel.setConfig(config);
configModel.setAlias(defaultProvider);
configModel = realm.addAuthenticatorConfig(configModel);
execution.setAuthenticatorConfig(configModel.getId());