Skip to content

Conversation

@vverman
Copy link
Contributor

@vverman vverman commented Oct 13, 2025

Documenting the custom credential supplier for authenticating:

  1. AWS Workloads.

  2. Okta Workloads.

@vverman vverman requested review from a team as code owners October 13, 2025 19:05
@product-auto-label product-auto-label bot added the size: l Pull request size is large. label Oct 13, 2025
@vverman vverman force-pushed the chore/document-custom-credential-suppliers branch from d6f790b to 49d17f5 Compare October 13, 2025 19:33
lqiu96
lqiu96 previously approved these changes Oct 13, 2025
lsirac
lsirac previously approved these changes Oct 20, 2025
@vverman vverman requested a review from lqiu96 October 24, 2025 01:08
// Check if the current token is still valid (with a 60-second buffer).
boolean isTokenValid =
this.accessToken != null
&& Instant.now().isBefore(this.expiryTime.minusSeconds(TOKEN_REFRESH_BUFFER_SECONDS));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think it would be slightly clearer if you reverse the logic. Feel free to ignore this if you disagree

// Current time + buffer < expirationTime = does not need a refresh
Instant.now().plusSecond(TOKEN_REFRESH_BUFFER_SECONDS).isBefore(this.expiryTime)

Copy link
Member

@lqiu96 lqiu96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vverman vverman merged commit 73e9e44 into googleapis:main Oct 28, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants