Skip to content

Commit

Permalink
bump api server version
Browse files Browse the repository at this point in the history
  • Loading branch information
shashimalcse committed Aug 21, 2024
1 parent adecbb9 commit d982891
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import javax.validation.Valid;

Expand All @@ -31,6 +33,8 @@ public class AccessTokenConfiguration {
private Long applicationAccessTokenExpiryInSeconds;
private Boolean revokeTokensWhenIDPSessionTerminated;
private Boolean validateTokenBinding;
private List<String> accessTokenAttributes = null;
private Boolean accessTokenAttributesEnabled;

/**
**/
Expand Down Expand Up @@ -122,6 +126,50 @@ public void setRevokeTokensWhenIDPSessionTerminated(Boolean revokeTokensWhenIDPS
this.revokeTokensWhenIDPSessionTerminated = revokeTokensWhenIDPSessionTerminated;
}

/**
**/
public AccessTokenConfiguration accessTokenAttributes(List<String> accessTokenAttributes) {

this.accessTokenAttributes = accessTokenAttributes;
return this;
}

@ApiModelProperty(value = "")
@JsonProperty("accessTokenAttributes")
@Valid
public List<String> getAccessTokenAttributes() {
return accessTokenAttributes;
}
public void setAccessTokenAttributes(List<String> accessTokenAttributes) {
this.accessTokenAttributes = accessTokenAttributes;
}

public AccessTokenConfiguration addAccessTokenAttributesItem(String accessTokenAttributesItem) {
if (this.accessTokenAttributes == null) {
this.accessTokenAttributes = new ArrayList<>();
}
this.accessTokenAttributes.add(accessTokenAttributesItem);
return this;
}

/**
**/
public AccessTokenConfiguration accessTokenAttributesEnabled(Boolean accessTokenAttributesEnabled) {

this.accessTokenAttributesEnabled = accessTokenAttributesEnabled;
return this;
}

@ApiModelProperty(value = "")
@JsonProperty("accessTokenAttributesEnabled")
@Valid
public Boolean getAccessTokenAttributesEnabled() {
return accessTokenAttributesEnabled;
}
public void setAccessTokenAttributesEnabled(Boolean accessTokenAttributesEnabled) {
this.accessTokenAttributesEnabled = accessTokenAttributesEnabled;
}

@Override
public boolean equals(Object o) {

Expand All @@ -134,12 +182,15 @@ public boolean equals(Object o) {
AccessTokenConfiguration accessTokenConfiguration = (AccessTokenConfiguration) o;
return Objects.equals(this.type, accessTokenConfiguration.type) &&
Objects.equals(this.userAccessTokenExpiryInSeconds, accessTokenConfiguration.userAccessTokenExpiryInSeconds) &&
Objects.equals(this.applicationAccessTokenExpiryInSeconds, accessTokenConfiguration.applicationAccessTokenExpiryInSeconds);
Objects.equals(this.applicationAccessTokenExpiryInSeconds, accessTokenConfiguration.applicationAccessTokenExpiryInSeconds) &&
Objects.equals(this.accessTokenAttributes, accessTokenConfiguration.accessTokenAttributes) &&
Objects.equals(this.accessTokenAttributesEnabled, accessTokenConfiguration.accessTokenAttributesEnabled);
}

@Override
public int hashCode() {
return Objects.hash(type, userAccessTokenExpiryInSeconds, applicationAccessTokenExpiryInSeconds);
return Objects.hash(type, userAccessTokenExpiryInSeconds, applicationAccessTokenExpiryInSeconds,
accessTokenAttributes, accessTokenAttributesEnabled);
}

@Override
Expand All @@ -151,6 +202,8 @@ public String toString() {
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" userAccessTokenExpiryInSeconds: ").append(toIndentedString(userAccessTokenExpiryInSeconds)).append("\n");
sb.append(" applicationAccessTokenExpiryInSeconds: ").append(toIndentedString(applicationAccessTokenExpiryInSeconds)).append("\n");
sb.append(" accessTokenAttributes: ").append(toIndentedString(accessTokenAttributes)).append("\n");
sb.append(" accessTokenAttributesEnabled: ").append(toIndentedString(accessTokenAttributesEnabled)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2424,7 +2424,7 @@
<!-- Identity REST API feature -->
<identity.api.dispatcher.version>2.0.17</identity.api.dispatcher.version>
<identity.user.api.version>1.3.38</identity.user.api.version>
<identity.server.api.version>1.2.219</identity.server.api.version>
<identity.server.api.version>1.2.220</identity.server.api.version>

<identity.agent.sso.version>5.5.9</identity.agent.sso.version>
<identity.tool.samlsso.validator.version>5.5.9</identity.tool.samlsso.validator.version>
Expand Down

0 comments on commit d982891

Please sign in to comment.