mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-01-22 01:58:05 +01:00
Remove no longer applicatble TODO's
This commit is contained in:
@@ -32,7 +32,7 @@ impl ApplicationDefaultCredentialsFlow {
|
||||
C: hyper::client::connect::Connect + Clone + Send + Sync + 'static,
|
||||
{
|
||||
let scope = crate::helper::join(scopes, ",");
|
||||
let token_uri = format!("{}?scopes={}", self.metadata_url, scope); // TODO: This feels jank, can it be done better?
|
||||
let token_uri = format!("{}?scopes={}", self.metadata_url, scope);
|
||||
let request = hyper::Request::get(token_uri)
|
||||
.header("Metadata-Flavor", "Google")
|
||||
.body(hyper::Body::from(String::new())) // why body is needed?
|
||||
|
||||
@@ -257,7 +257,6 @@ impl ServiceAccountAuthenticator {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Can those use statements be cleaned up?
|
||||
/// Create an authenticator that uses a application default credentials.
|
||||
/// ```
|
||||
/// # #[cfg(any(feature = "hyper-rustls", feature = "hyper-tls"))]
|
||||
|
||||
Reference in New Issue
Block a user