mmaslankaprv opened a new pull request, #619:
URL: https://github.com/apache/iceberg-cpp/pull/619

   ## Summary
   - Implement `OAuth2AuthSession` with transparent, mutex-guarded token 
refresh — replaces the previous `MakeOAuth2` stub that only set a static bearer 
header
   - Add `RefreshToken()` utility for the `refresh_token` grant type, with 
fallback to `client_credentials` when the refresh token is absent or expired
   - Add configurable `oauth2.token-refresh-margin-seconds` property (default 
300 s) to control the safety margin before token expiry
   
   This is the missing piece from the Oxla patch 
`005-auth-oauth2-refresh.patch` — the rest of that patch (auth manager wiring, 
HTTP client auth integration, SSL config) was already applied via earlier 
commits.
   
   ## Test plan
   - [ ] Verify build succeeds with `-DICEBERG_BUILD_REST=ON`
   - [ ] Verify token refresh triggers correctly when `expires_in_secs` is set 
and the margin is reached
   - [ ] Verify `refresh_token` grant is attempted first, falling back to 
`client_credentials`
   - [ ] Verify thread safety: concurrent `Authenticate()` calls serialize 
through the mutex


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to