Skip to content

Conversation

@arithmetic1728
Copy link
Contributor

@arithmetic1728 arithmetic1728 commented May 28, 2020

(1) For IDTokenCredentials.refresh(self.request), use the provided
request instead of creating a new one
(2) For impersonated_credentials.Credentials, only refresh the source credentials if it is not
valid (in other words, expires within _helpers.CLOCK_SKEW=5 minutes). Also we need to remove the expired function (because it doesn't support clock skew), so it can fall back to the expired function defined in google.auth.credentials.Credentials interface which respect the clock skew.

(1) For IDTokenCredentials.refresh(self.request), use the provided 
request instead of creating a new one
(2) For Credentials, only refresh the source credentials if it is not 
valid
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 28, 2020
@arithmetic1728 arithmetic1728 requested a review from busunkim96 May 28, 2020 00:54
@arithmetic1728 arithmetic1728 merged commit eb7be3f into master May 28, 2020
@arithmetic1728 arithmetic1728 deleted the sijun/gcloud branch May 28, 2020 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants