Skip to content

Conversation

botsteve
Copy link

@botsteve botsteve commented Aug 8, 2025

Description

Documentation

  • Uses a single CachedToken instance to cache the client credentials access token per provider/config, not per outbound target or tenant.
  • Access to the cache is protected by a ReentrantLock for thread safety.
  • If the OIDC server does not provide expires_in as it is a RECOMMENDED but not REQUIRED field in the response https://datatracker.ietf.org/doc/html/rfc6749, the caching is skipped in order to avoid scenarios where you get stuck with an expired cached access token.
  • The CachedToken class uses a 30-second buffer to refresh the token before it actually expires.

Closes the issue #10422

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 8, 2025
@botsteve botsteve force-pushed the 10422-fixes branch 5 times, most recently from c0ce083 to fe9e1a4 Compare August 8, 2025 10:39
@botsteve
Copy link
Author

botsteve commented Aug 8, 2025

@romain-grecourt or @Verdent if you can review sometime. Thanks!

@botsteve botsteve force-pushed the 10422-fixes branch 7 times, most recently from 0ede46d to be8b32a Compare August 10, 2025 13:14
@barchetta barchetta requested a review from Verdent August 11, 2025 18:20
@botsteve botsteve force-pushed the 10422-fixes branch 2 times, most recently from be8b32a to 1fccd58 Compare September 24, 2025 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant