Skip to content

Commit 2b486bd

Browse files
committed
Added unit tests for Trust Boundary for Service accounts. Updated. the trust boundary enabler env variable
1 parent c17e26d commit 2b486bd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,6 +1162,7 @@ public static class Builder extends GoogleCredentials.Builder {
11621162
private int lifetime = DEFAULT_LIFETIME_IN_SECONDS;
11631163
private boolean useJwtAccessWithScope = false;
11641164
private boolean defaultRetriesEnabled = true;
1165+
private TrustBoundary trustBoundary;
11651166

11661167
protected Builder() {}
11671168

@@ -1180,6 +1181,7 @@ protected Builder(ServiceAccountCredentials credentials) {
11801181
this.lifetime = credentials.lifetime;
11811182
this.useJwtAccessWithScope = credentials.useJwtAccessWithScope;
11821183
this.defaultRetriesEnabled = credentials.defaultRetriesEnabled;
1184+
this.trustBoundary = credentials.getTrustBoundary();
11831185
}
11841186

11851187
@CanIgnoreReturnValue

samples/snippets/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<dependency>
4444
<groupId>com.google.auth</groupId>
4545
<artifactId>google-auth-library-oauth2-http</artifactId>
46-
<version>1.35.0</version>
46+
<version>1.35.0</version>
4747
</dependency>
4848

4949
<!-- IAM dependency-->

0 commit comments

Comments
 (0)