Skip to content

fix: reuse cached OBO token after upstream token expiration - #14693

Open
The-Alex93 wants to merge 1 commit into
danny-avila:mainfrom
The-Alex93:fix/obo-cached-token
Open

fix: reuse cached OBO token after upstream token expiration#14693
The-Alex93 wants to merge 1 commit into
danny-avila:mainfrom
The-Alex93:fix/obo-cached-token

Conversation

@The-Alex93

Copy link
Copy Markdown

Summary

Reuse cached OBO tokens even after the upstream OpenID access token has expired.

Previously, the upstream token was validated before checking the OBO token cache. As a result, valid cached OBO tokens became unusable once the upstream token expired.

This change:

  • checks the OBO cache before validating the upstream token;
  • performs a new OBO exchange only when no cached token is available;
  • adds tests covering the new behavior.

Change Type

  • Bug fix (non-breaking change which fixes an issue)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant