Skip to content

Commit

Permalink
Remove 1 hour limit for the impersonated token
Browse files Browse the repository at this point in the history
Cloud IAM now supports extended 12h lifespan for access token:
https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials#sa-credentials-oauth

A separate PR should be made to allow developers to specify the desired lifespan of the granted token.
  • Loading branch information
shinfan committed Oct 15, 2020
1 parent 1a10a4a commit d7defa6
Showing 1 changed file with 0 additions and 3 deletions.
Expand Up @@ -218,9 +218,6 @@ private ImpersonatedCredentials(Builder builder) {
if (this.scopes == null) {
throw new IllegalStateException(SCOPE_EMPTY_ERROR);
}
if (this.lifetime > ONE_HOUR_IN_SECONDS) {
throw new IllegalStateException(LIFETIME_EXCEEDED_ERROR);
}
}

@Override
Expand Down

0 comments on commit d7defa6

Please sign in to comment.