From 01beff741d692a970468dd928bd01cda45b272dc Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Mon, 11 Apr 2016 07:42:49 +0200 Subject: [PATCH] KEYCLOAK-2766 Add missing id to AuthenticatorConfigRepresentation --- .../idm/AuthenticatorConfigRepresentation.java | 10 ++++++++-- .../keycloak/models/utils/ModelToRepresentation.java | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) 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;