diff --git a/core/src/main/java/org/keycloak/representations/idm/AuthenticatorConfigRepresentation.java b/core/src/main/java/org/keycloak/representations/idm/AuthenticatorConfigRepresentation.java index dda7418152..258f9257ed 100755 --- a/core/src/main/java/org/keycloak/representations/idm/AuthenticatorConfigRepresentation.java +++ b/core/src/main/java/org/keycloak/representations/idm/AuthenticatorConfigRepresentation.java @@ -27,9 +27,17 @@ import java.util.Map; */ public class AuthenticatorConfigRepresentation implements Serializable { + private String id; private String alias; private Map config = new HashMap(); + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } public String getAlias() { return alias; @@ -39,8 +47,6 @@ public class AuthenticatorConfigRepresentation implements Serializable { this.alias = alias; } - - public Map getConfig() { return config; } diff --git a/server-spi/src/main/java/org/keycloak/models/utils/ModelToRepresentation.java b/server-spi/src/main/java/org/keycloak/models/utils/ModelToRepresentation.java index 64079b0a1f..7f7f7e0d04 100755 --- a/server-spi/src/main/java/org/keycloak/models/utils/ModelToRepresentation.java +++ b/server-spi/src/main/java/org/keycloak/models/utils/ModelToRepresentation.java @@ -717,6 +717,7 @@ public class ModelToRepresentation { public static AuthenticatorConfigRepresentation toRepresentation(AuthenticatorConfigModel model) { AuthenticatorConfigRepresentation rep = new AuthenticatorConfigRepresentation(); + rep.setId(model.getId()); rep.setAlias(model.getAlias()); rep.setConfig(model.getConfig()); return rep;