KEYCLOAK-2766 Add missing id to AuthenticatorConfigRepresentation
This commit is contained in:
parent
5b156595fb
commit
01beff741d
2 changed files with 9 additions and 2 deletions
|
@ -27,9 +27,17 @@ import java.util.Map;
|
||||||
*/
|
*/
|
||||||
public class AuthenticatorConfigRepresentation implements Serializable {
|
public class AuthenticatorConfigRepresentation implements Serializable {
|
||||||
|
|
||||||
|
private String id;
|
||||||
private String alias;
|
private String alias;
|
||||||
private Map<String, String> config = new HashMap<String, String>();
|
private Map<String, String> config = new HashMap<String, String>();
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
public String getAlias() {
|
public String getAlias() {
|
||||||
return alias;
|
return alias;
|
||||||
|
@ -39,8 +47,6 @@ public class AuthenticatorConfigRepresentation implements Serializable {
|
||||||
this.alias = alias;
|
this.alias = alias;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Map<String, String> getConfig() {
|
public Map<String, String> getConfig() {
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
|
|
@ -717,6 +717,7 @@ public class ModelToRepresentation {
|
||||||
|
|
||||||
public static AuthenticatorConfigRepresentation toRepresentation(AuthenticatorConfigModel model) {
|
public static AuthenticatorConfigRepresentation toRepresentation(AuthenticatorConfigModel model) {
|
||||||
AuthenticatorConfigRepresentation rep = new AuthenticatorConfigRepresentation();
|
AuthenticatorConfigRepresentation rep = new AuthenticatorConfigRepresentation();
|
||||||
|
rep.setId(model.getId());
|
||||||
rep.setAlias(model.getAlias());
|
rep.setAlias(model.getAlias());
|
||||||
rep.setConfig(model.getConfig());
|
rep.setConfig(model.getConfig());
|
||||||
return rep;
|
return rep;
|
||||||
|
|
Loading…
Reference in a new issue