cmcarthur opened a new pull request, #1465:
URL: https://github.com/apache/iceberg-rust/pull/1465

   ## Which issue does this PR close?
   
   <!--
   We generally require a GitHub issue to be filed for all bug fixes and 
enhancements and this helps us generate change logs for our releases. You can 
link an issue to this PR using the GitHub syntax. For example `Closes #123` 
indicates that this PR will close issue #123.
   -->
   
   - Partially implements #436 .
   
   ## What changes are included in this PR?
   
   <!--
   Provide a summary of the modifications in this PR. List the main changes 
such as new features, bug fixes, refactoring, or any other updates.
   -->
   
   Per discussion here: 
https://github.com/apache/iceberg-rust/issues/437#issuecomment-2997408926
   
   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?
   
   <!--
   Specify what test covers (unit test, integration test, etc.).
   
   If tests are not included in your PR, please explain why (for example, are 
they covered by existing tests)?
   -->
   
   Yes -- I've added new unit tests to cover both methods.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to