Skip to content

Commit f013aa5

Browse files
committed
Imports are listed. setTrustBoundaries removed.
1 parent 2071071 commit f013aa5

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131

3232
package com.google.auth.oauth2;
3333

34-
import static com.google.auth.oauth2.OAuth2Utils.*;
34+
import static com.google.auth.oauth2.OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKFORCE_POOL;
35+
import static com.google.auth.oauth2.OAuth2Utils.JSON_FACTORY;
36+
import static com.google.auth.oauth2.OAuth2Utils.WORKFORCE_AUDIENCE_PATTERN;
3537
import static com.google.common.base.Preconditions.checkNotNull;
3638

3739
import com.google.api.client.http.GenericUrl;

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -533,10 +533,9 @@ protected AccessToken exchangeExternalCredentialForAccessToken(
533533
}
534534
if (this.impersonatedCredentials != null) {
535535
AccessToken accessToken = this.impersonatedCredentials.refreshAccessToken();
536-
// We use the impersonated account's credential as the trust boundary
537-
// since the regional restriction is bounded by the access that the
538-
// impersonated account has.
539-
setTrustBoundary(this.impersonatedCredentials.getTrustBoundary());
536+
// After the impersonated credential refreshes, its trust boundary is
537+
// also refreshed. That is the trust boundary we will use.
538+
this.trustBoundary = this.impersonatedCredentials.getTrustBoundary();
540539
return accessToken;
541540
}
542541

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ String getFileType() {
108108
private final String universeDomain;
109109
private final boolean isExplicitUniverseDomain;
110110

111-
private TrustBoundary trustBoundary;
111+
TrustBoundary trustBoundary;
112112

113113
protected final String quotaProjectId;
114114

0 commit comments

Comments
 (0)