Skip to content

Commit

Permalink
feat(jans-auth,jans-cli,jans-config-api): changes to handle new attri…
Browse files Browse the repository at this point in the history
…bute description in Client object and new custom script type
  • Loading branch information
pujavs committed Mar 15, 2022
1 parent 40e24ea commit d4a9f15
Show file tree
Hide file tree
Showing 7 changed files with 95 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public class Client extends DeletableEntity implements Serializable {
private Integer accessTokenLifetime;

@AttributesList(name = "name", value = "values", sortByName = true)
private List<CustomAttribute> customAttributes = new ArrayList<CustomAttribute>();
private List<CustomAttribute> customAttributes = new ArrayList<>();

@CustomObjectClass
private String[] customObjectClasses;
Expand Down Expand Up @@ -240,6 +240,9 @@ public class Client extends DeletableEntity implements Serializable {

@AttributeName(name = "jansBackchannelUsrCodeParameter")
private Boolean backchannelUserCodeParameter;

@AttributeName(name = "description")
private String description;

@Expiration
private Integer ttl;
Expand Down Expand Up @@ -291,10 +294,12 @@ public AuthenticationMethod getAuthenticationMethod() {
return AuthenticationMethod.fromString(tokenEndpointAuthMethod);
}

@Override
public String getDn() {
return dn;
}

@Override
public void setDn(String dn) {
this.dn = dn;
}
Expand Down Expand Up @@ -1167,8 +1172,8 @@ public String[] getCustomObjectClasses() {
return customObjectClasses;
}

public void setCustomObjectClasses(String[] p_customObjectClasses) {
customObjectClasses = p_customObjectClasses;
public void setCustomObjectClasses(String[] customObjectClasses) {
this.customObjectClasses = customObjectClasses;
}

public boolean isDisabled() {
Expand Down Expand Up @@ -1244,11 +1249,19 @@ public void setBackchannelUserCodeParameter(Boolean backchannelUserCodeParameter
}

public String getDisplayName() {
return clientName;
return getClientName();
}

public void setDisplayName(String displayName) {
this.clientName = displayName;
}

public String getDescription() {
return description;
}

public void setDescription(String description) {
this.description = description;
}

}
Loading

0 comments on commit d4a9f15

Please sign in to comment.