Skip to content

feat(oauth2): Token expiry & refresh - #3160

Open
DerGut wants to merge 1 commit into
apache:mainfrom
DerGut:oauth2-token-expiry
Open

feat(oauth2): Token expiry & refresh#3160
DerGut wants to merge 1 commit into
apache:mainfrom
DerGut:oauth2-token-expiry

Conversation

@DerGut

@DerGut DerGut commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

This change is necessary because I'm introducing a cache for contextual sessions in #3170. We don't want to return already expired sessions from the cache, so I'm adding refresh behavior first.
This is also removing a TODO comment in code # TODO: Support automatic token refreshing..

What changes are included in this PR?

This PR implements token expiration and refresh for the OAuth2Manager of the RestCatalog.

Note that this is adding the simplest version of token refresh. I'm happy to contribute background refresh tasks in a follow-up.

Are these changes tested?

Thorough unit tests

AI Disclosure

Used help of AI with the changes and tests.

@DerGut
DerGut force-pushed the oauth2-token-expiry branch from f1da144 to 4a0a087 Compare September 6, 2026 21:19
@DerGut
DerGut force-pushed the oauth2-token-expiry branch from 4a0a087 to cc0d540 Compare September 7, 2026 22:08
@DerGut
DerGut force-pushed the oauth2-token-expiry branch from cc0d540 to 22c0a39 Compare September 7, 2026 22:58
@DerGut
DerGut marked this pull request as ready for review September 7, 2026 23:07
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