Skip to content

Conversation

cmcarthur
Copy link
Contributor

@cmcarthur cmcarthur commented Jun 24, 2025

Which issue does this PR close?

What changes are included in this PR?

Per discussion here: #437 (comment)

This branch exposes two public methods on the rest catalog for managing tokens: invalidate_token and regenerate_token.

  • invalidate_token: takes the token lock and sets the token to None, forcing re-auth on the next request
  • regenerate_token: calls the oauth endpoint to generate a new token. if successful, takes the token lock and writes the new token.

Are these changes tested?

Yes -- I've added new unit tests to cover both methods.

@cmcarthur cmcarthur force-pushed the cmcarthur/invalidate-token-apis branch from d98906a to 3708c46 Compare June 24, 2025 11:30
Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thank you @cmcarthur for working on this!

@Xuanwo Xuanwo merged commit a961483 into apache:main Jun 25, 2025
17 checks passed
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.

2 participants