Skip to content

Commit

Permalink
Publish AssumeRoleWithOIDC API by adding more detail in response.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Oct 11, 2023
1 parent b4d709c commit d8761e4
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-sts/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-10-11 Version: 3.1.2
- Publish AssumeRoleWithOIDC API by adding more detail in response.

2023-03-02 Version: 3.1.1
- Publish AssumeRole API With ExternalId Parameter.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-sts/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-sts</artifactId>
<packaging>jar</packaging>
<version>3.1.1</version>
<version>3.1.2</version>
<name>aliyun-java-sdk-sts</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ public static class OIDCTokenInfo {

private String clientIds;

private String expirationTime;

private String issuanceTime;

private String verificationInfo;

public String getSubject() {
return this.subject;
}
Expand All @@ -95,6 +101,30 @@ public String getClientIds() {
public void setClientIds(String clientIds) {
this.clientIds = clientIds;
}

public String getExpirationTime() {
return this.expirationTime;
}

public void setExpirationTime(String expirationTime) {
this.expirationTime = expirationTime;
}

public String getIssuanceTime() {
return this.issuanceTime;
}

public void setIssuanceTime(String issuanceTime) {
this.issuanceTime = issuanceTime;
}

public String getVerificationInfo() {
return this.verificationInfo;
}

public void setVerificationInfo(String verificationInfo) {
this.verificationInfo = verificationInfo;
}
}

public static class AssumedRoleUser {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public static AssumeRoleWithOIDCResponse unmarshall(AssumeRoleWithOIDCResponse a
oIDCTokenInfo.setSubject(_ctx.stringValue("AssumeRoleWithOIDCResponse.OIDCTokenInfo.Subject"));
oIDCTokenInfo.setIssuer(_ctx.stringValue("AssumeRoleWithOIDCResponse.OIDCTokenInfo.Issuer"));
oIDCTokenInfo.setClientIds(_ctx.stringValue("AssumeRoleWithOIDCResponse.OIDCTokenInfo.ClientIds"));
oIDCTokenInfo.setExpirationTime(_ctx.stringValue("AssumeRoleWithOIDCResponse.OIDCTokenInfo.ExpirationTime"));
oIDCTokenInfo.setIssuanceTime(_ctx.stringValue("AssumeRoleWithOIDCResponse.OIDCTokenInfo.IssuanceTime"));
oIDCTokenInfo.setVerificationInfo(_ctx.stringValue("AssumeRoleWithOIDCResponse.OIDCTokenInfo.VerificationInfo"));
assumeRoleWithOIDCResponse.setOIDCTokenInfo(oIDCTokenInfo);

AssumedRoleUser assumedRoleUser = new AssumedRoleUser();
Expand Down

0 comments on commit d8761e4

Please sign in to comment.