google-apis-rs / google-cloud-rs

Asynchronous Rust bindings for Google Cloud Platform APIs.
176 stars 48 forks source link

Revisited how authentication tokens are kept up-to-date #17

Closed Hirevo closed 4 years ago

Hirevo commented 4 years ago

This PR removes the use of Tonic's server interceptors for the purpose of refreshing authentication tokens.
Instead, we manually keep it up-to-date when constructing each request.

Since we're now doing it within the context of an async function, this PR also migrates the authentication requests to use reqwest instead of isahc and drop this dependency altogether, keeping only a single HTTP client.

Fixes #14.