From e5d67a062ace366dc4c56abcdd1c9bd7126a651a Mon Sep 17 00:00:00 2001 From: Thilina Shashimal Senarath <43197743+shashimalcse@users.noreply.github.com> Date: Wed, 21 Aug 2024 11:55:49 +0530 Subject: [PATCH] Bump api server version and fix integration tests (#20949) * bump api server version --- .../v1/model/AccessTokenConfiguration.java | 57 ++++++++++++++++++- pom.xml | 2 +- 2 files changed, 56 insertions(+), 3 deletions(-) diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/application/management/v1/model/AccessTokenConfiguration.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/application/management/v1/model/AccessTokenConfiguration.java index a97cf611c03..75059a25b02 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/application/management/v1/model/AccessTokenConfiguration.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/application/management/v1/model/AccessTokenConfiguration.java @@ -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; @@ -31,6 +33,8 @@ public class AccessTokenConfiguration { private Long applicationAccessTokenExpiryInSeconds; private Boolean revokeTokensWhenIDPSessionTerminated; private Boolean validateTokenBinding; + private List accessTokenAttributes = null; + private Boolean accessTokenAttributesEnabled; /** **/ @@ -122,6 +126,50 @@ public void setRevokeTokensWhenIDPSessionTerminated(Boolean revokeTokensWhenIDPS this.revokeTokensWhenIDPSessionTerminated = revokeTokensWhenIDPSessionTerminated; } + /** + **/ + public AccessTokenConfiguration accessTokenAttributes(List accessTokenAttributes) { + + this.accessTokenAttributes = accessTokenAttributes; + return this; + } + + @ApiModelProperty(value = "") + @JsonProperty("accessTokenAttributes") + @Valid + public List getAccessTokenAttributes() { + return accessTokenAttributes; + } + public void setAccessTokenAttributes(List 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) { @@ -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 @@ -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(); } diff --git a/pom.xml b/pom.xml index dc04efa30a1..d444c62652b 100755 --- a/pom.xml +++ b/pom.xml @@ -2424,7 +2424,7 @@ 2.0.17 1.3.38 - 1.2.219 + 1.2.220 5.5.9 5.5.9