GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat: add impersonation credentials to ADC by liuchaoren · Pull Request #613 · googleapis/google-auth-library-java
This repository was archived by the owner on May 12, 2026. It is now read-only.
Conversation
|
Codecov Report
@@ Coverage Diff @@ ## master #613 +/- ## ============================================ + Coverage 83.59% 83.98% +0.38% - Complexity 606 622 +16 ============================================ Files 42 42 Lines 2712 2778 +66 Branches 289 295 +6 ============================================ + Hits 2267 2333 +66 + Misses 303 300 -3 - Partials 142 145 +3
Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| import java.io.IOException; | ||
|
|
||
| /** Indicates that the provided credential has a unsupported type. */ | ||
| public class CredentialTypeException extends IOException { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I removed this customized exception and adopt the same strategy as
google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/GoogleCredentials.java
Line 172 in a5150b5
| throw new IOException( |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| String serviceAccountImpersonationUrl = (String) json.get("service_account_impersonation_url"); | ||
| String targetPrincipal = extractTargetPrincipal(serviceAccountImpersonationUrl); | ||
|
|
||
| List<String> delegates = (List<String>) json.get("delegates"); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It looks like they're a lot of potential ClassCastExceptions here that are not being handled. Where does the json object come from?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The json object is passed from
google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/GoogleCredentials.java
Line 149 in a5150b5
| public static GoogleCredentials fromStream( |
google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountCredentials.java
Line 269 in a5150b5
| String audience = (String) json.get("audience"); |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The code should check this input and be prepared to handle a malformed or invalid file. It does not know where the file came from or how it might have been modified since it was generated. Do not assume it has the format you expect. Even if it's right today, the output of gcloud could change in the future.
If other code already makes this mistake, it should be fixed too.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
fair enough, thanks for pointing this out! I added the exception handling and added a test to cover it. Please take another look.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| String serviceAccountImpersonationUrl = (String) json.get("service_account_impersonation_url"); | ||
| String targetPrincipal = extractTargetPrincipal(serviceAccountImpersonationUrl); | ||
|
|
||
| List<String> delegates = (List<String>) json.get("delegates"); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The code should check this input and be prepared to handle a malformed or invalid file. It does not know where the file came from or how it might have been modified since it was generated. Do not assume it has the format you expect. Even if it's right today, the output of gcloud could change in the future.
If other code already makes this mistake, it should be fixed too.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| static final String QUOTA_PROJECT_ID_HEADER_KEY = "x-goog-user-project"; | ||
| static final String USER_FILE_TYPE = "authorized_user"; | ||
| static final String SERVICE_ACCOUNT_FILE_TYPE = "service_account"; | ||
| static final String IMPERSONATED_SERVICE_ACCOUNT = "impersonated_service_account"; |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This constant does not improve on the literal string. I suggest just using the string.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I am debating on these two options. I think even though the constant is not more readable than the string itself. I like the way we define all credential types in one place. So people can see all supported types there. I am not very familiar with Java convention, I trust your judgement on this. Please let me know if you still want me to make this change.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
That's something that belongs in documentation. Don't rely on the code for that.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| /** | ||
| * @param sourceCredentials the source credential used as to acquire the impersonated credentials | ||
| * @param sourceCredentials the source credential used as to acquire the impersonated credentials. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
delete "as",
delete final period since it's not a complete sentence
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| /** | ||
| * @param sourceCredentials the source credential used as to acquire the impersonated credentials | ||
| * @param sourceCredentials the source credential used as to acquire the impersonated credentials. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
delete "as",
delete final period since it's not a complete sentence
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Please make sure you get approval from @elharo before merging.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| static final String QUOTA_PROJECT_ID_HEADER_KEY = "x-goog-user-project"; | ||
| static final String USER_FILE_TYPE = "authorized_user"; | ||
| static final String SERVICE_ACCOUNT_FILE_TYPE = "service_account"; | ||
| static final String IMPERSONATED_SERVICE_ACCOUNT = "impersonated_service_account"; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
That's something that belongs in documentation. Don't rely on the code for that.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| assertEquals(QUOTA_PROJECT_ID, credentials.getQuotaProjectId()); | ||
| assertEquals(DELEGATES, credentials.getDelegates()); | ||
| assertEquals(new ArrayList<String>(), credentials.getScopes()); | ||
| assertEquals(credentials.getLifetime(), 3600); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
expected value comes first; swap the arguments
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done. I made the change in new commits to my branch https://github.com/liuchaoren/google-auth-library-java which should update the PR automatically. Somehow the new commits do not show up in the PR. There might be some lag. I will keep an eye on it.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
New commits show up in the PR now.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| assertNull(credentials.getQuotaProjectId()); | ||
| assertEquals(new ArrayList<String>(), credentials.getDelegates()); | ||
| assertEquals(new ArrayList<String>(), credentials.getScopes()); | ||
| assertEquals(credentials.getLifetime(), 3600); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
expected value comes first; swap the arguments
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| assertNull(credentials.getQuotaProjectId()); | ||
| assertEquals(DELEGATES, credentials.getDelegates()); | ||
| assertEquals(new ArrayList<String>(), credentials.getScopes()); | ||
| assertEquals(credentials.getLifetime(), 3600); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
expected value comes first; swap the arguments
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| assertEquals(QUOTA_PROJECT_ID, credentials.getQuotaProjectId()); | ||
| assertEquals(DELEGATES, credentials.getDelegates()); | ||
| assertEquals(new ArrayList<String>(), credentials.getScopes()); | ||
| assertEquals(credentials.getLifetime(), 3600); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
expected value comes first; swap the arguments
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| return this; | ||
| } | ||
|
|
||
| public String getQuotaProjectId() { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This method is not tested. Is it needed at all? It can probably be removed at no loss.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing it out! It is not used and I removed it.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| } catch (ClassCastException | NullPointerException e) { | ||
| throw new CredentialFormatException("An invalid input stream was provided.", e); | ||
| } | ||
| String targetPrincipal = extractTargetPrincipal(serviceAccountImpersonationUrl); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
need to handle the IllegalArgumentException here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks, it is handled.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| USER_ACCOUNT_CLIENT_ID, | ||
| USER_ACCOUNT_CLIENT_SECRET, | ||
| REFRESH_TOKEN); | ||
| MockIAMCredentialsServiceTransportFactory mtransportFactory = |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
mockTransportFactory because style does not abbreviate in variable names
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| USER_ACCOUNT_CLIENT_SECRET, | ||
| REFRESH_TOKEN); | ||
| json.remove("delegates"); | ||
| MockIAMCredentialsServiceTransportFactory mtransportFactory = |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
mockTransportFactory
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| public void fromJson_ServiceAccountAsSource() throws IOException { | ||
| GenericJson json = | ||
| buildImpersonationCredentialsJson(IMPERSONATION_URL, DELEGATES, QUOTA_PROJECT_ID); | ||
| MockIAMCredentialsServiceTransportFactory mtransportFactory = |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
mockTransportFactory
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @Test() | ||
| public void fromJson_InvalidFormat() throws IOException { | ||
| GenericJson json = buildInvalidCredentialsJson(); | ||
| MockIAMCredentialsServiceTransportFactory mtransportFactory = |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
mockTransportFactory
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @Test() | ||
| public void createScoped() throws IOException { | ||
| GoogleCredentials sourceCredentials = getSourceCredentials(); | ||
| MockIAMCredentialsServiceTransportFactory mtransportFactory = |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
mockTransportFactory
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| public void getRequestMetadata_withQuotaProjectId() throws IOException, IllegalStateException { | ||
|
|
||
| GoogleCredentials sourceCredentials = getSourceCredentials(); | ||
| MockIAMCredentialsServiceTransportFactory mtransportFactory = |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
mockTransportFactory
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @Test() | ||
| public void getRequestMetadata_withQuotaProjectId() throws IOException, IllegalStateException { | ||
|
|
||
| GoogleCredentials sourceCredentials = getSourceCredentials(); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
You might be able to move these two lines into a fixture. They are repeated a lot.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| public void getRequestMetadata_withoutQuotaProjectId() throws IOException, IllegalStateException { | ||
|
|
||
| GoogleCredentials sourceCredentials = getSourceCredentials(); | ||
| MockIAMCredentialsServiceTransportFactory mtransportFactory = |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
mockTransportFactory
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| private String getDefaultExpireTime() { | ||
| public static String getDefaultExpireTime() { | ||
| Date currentDate = new Date(); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
why set the date? Calendar.getInstance is already the current time.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| GoogleCredentials.fromStream(impersonationCredentialsStream, transportFactoryForSource); | ||
| credentials.setTransportFactory(transportFactory); | ||
|
|
||
| assertNotNull(credentials); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Line 333 will have already thrown a NullPointerException if credentials is null so you can remove this
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| GoogleCredentials.fromStream(impersonationCredentialsStream, transportFactoryForSource); | ||
| credentials.setTransportFactory(transportFactory); | ||
|
|
||
| assertNotNull(credentials); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Line 298 will have already thrown a NullPointerException if credentials is null so you can remove this assertNotNull
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| } | ||
|
|
||
| @Override | ||
| public boolean createScopedRequired() { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This name doesn't quite fit. Create tends t be a factory method. This is more of an is method. Is this new in this PR?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This method is not invented in this PR. It is defined in the base class 'GoogleCredentials' which is overridden by its subclasses. I think it uses "create" in its name because of its relationship with the createScoped method.
google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/GoogleCredentials.java
Line 218 in 292e81a
| * Indicates whether the credentials require scopes to be specified via a call to {@link |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| return this.quotaProjectId; | ||
| } | ||
|
|
||
| public List<String> getDelegates() { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This method doesn't seem used. Can it be removed?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This method is used in tests to verify the delegates.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
In that case please annotate it as @VisibleForTesting. Also, make it non-public if possible. (It might not be but worth checking.)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks for letting me know the annotation! I added it and removed the "public" to limit the visibility.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Github actions was having trouble yesterday systemwide. Might be fixed now. I pushed the button to rerun.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
🤖 I have created a release \*beep\* \*boop\* --- ## [0.27.0](https://www.github.com/googleapis/google-auth-library-java/compare/v0.26.0...v0.27.0) (2021-07-14) ### Features * add Id token support for UserCredentials ([#650](https://www.github.com/googleapis/google-auth-library-java/issues/650)) ([5a8f467](https://www.github.com/googleapis/google-auth-library-java/commit/5a8f4676630854c53aa708a9c8b960770067f858)) * add impersonation credentials to ADC ([#613](https://www.github.com/googleapis/google-auth-library-java/issues/613)) ([b9823f7](https://www.github.com/googleapis/google-auth-library-java/commit/b9823f70d7f3f7461b7de40bee06f5e7ba0e797c)) * Adding functional tests for Service Account ([#685](https://www.github.com/googleapis/google-auth-library-java/issues/685)) ([dfe118c](https://www.github.com/googleapis/google-auth-library-java/commit/dfe118c261aadf137a3cf47a7acb9892c7a6db4d)) * allow scopes for self signed jwt ([#689](https://www.github.com/googleapis/google-auth-library-java/issues/689)) ([f4980c7](https://www.github.com/googleapis/google-auth-library-java/commit/f4980c77566bbd5ef4c532acb199d7d484dbcd01)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
…oundaries (#698) * feat: Adding functional tests for Service Account (#685) ServiceAccountCredentials tests for 4110 * feat: allow scopes for self signed jwt (#689) * feat: self signed jwt support * update * address comments * allow to use uri as audience * address comments * chore: release 0.27.0 (#678) :robot: I have created a release \*beep\* \*boop\* --- ## [0.27.0](https://www.github.com/googleapis/google-auth-library-java/compare/v0.26.0...v0.27.0) (2021-07-14) ### Features * add Id token support for UserCredentials ([#650](https://www.github.com/googleapis/google-auth-library-java/issues/650)) ([5a8f467](https://www.github.com/googleapis/google-auth-library-java/commit/5a8f4676630854c53aa708a9c8b960770067f858)) * add impersonation credentials to ADC ([#613](https://www.github.com/googleapis/google-auth-library-java/issues/613)) ([b9823f7](https://www.github.com/googleapis/google-auth-library-java/commit/b9823f70d7f3f7461b7de40bee06f5e7ba0e797c)) * Adding functional tests for Service Account ([#685](https://www.github.com/googleapis/google-auth-library-java/issues/685)) ([dfe118c](https://www.github.com/googleapis/google-auth-library-java/commit/dfe118c261aadf137a3cf47a7acb9892c7a6db4d)) * allow scopes for self signed jwt ([#689](https://www.github.com/googleapis/google-auth-library-java/issues/689)) ([f4980c7](https://www.github.com/googleapis/google-auth-library-java/commit/f4980c77566bbd5ef4c532acb199d7d484dbcd01)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). * test: adds integration tests for downscoping with credential access boundaries Co-authored-by: Timur Sadykov <[email protected]> Co-authored-by: arithmetic1728 <[email protected]> Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
…s_in (#699) * feat: Adding functional tests for Service Account (#685) ServiceAccountCredentials tests for 4110 * feat: allow scopes for self signed jwt (#689) * feat: self signed jwt support * update * address comments * allow to use uri as audience * address comments * chore: release 0.27.0 (#678) :robot: I have created a release \*beep\* \*boop\* --- ## [0.27.0](https://www.github.com/googleapis/google-auth-library-java/compare/v0.26.0...v0.27.0) (2021-07-14) ### Features * add Id token support for UserCredentials ([#650](https://www.github.com/googleapis/google-auth-library-java/issues/650)) ([5a8f467](https://www.github.com/googleapis/google-auth-library-java/commit/5a8f4676630854c53aa708a9c8b960770067f858)) * add impersonation credentials to ADC ([#613](https://www.github.com/googleapis/google-auth-library-java/issues/613)) ([b9823f7](https://www.github.com/googleapis/google-auth-library-java/commit/b9823f70d7f3f7461b7de40bee06f5e7ba0e797c)) * Adding functional tests for Service Account ([#685](https://www.github.com/googleapis/google-auth-library-java/issues/685)) ([dfe118c](https://www.github.com/googleapis/google-auth-library-java/commit/dfe118c261aadf137a3cf47a7acb9892c7a6db4d)) * allow scopes for self signed jwt ([#689](https://www.github.com/googleapis/google-auth-library-java/issues/689)) ([f4980c7](https://www.github.com/googleapis/google-auth-library-java/commit/f4980c77566bbd5ef4c532acb199d7d484dbcd01)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). * test: adds integration tests for downscoping with credential access boundaries * fix: STS does not always return expires_in, fallback to source credential expiration for DownscopedCredentials * fix: review Co-authored-by: Timur Sadykov <[email protected]> Co-authored-by: arithmetic1728 <[email protected]> Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
ADC can load a json of impersonated service account credentials generated by gcloud
There was an error while loading. Please reload this page.