mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-01-07 19:47:03 +01:00
rustls upgrade: supply correct client in test cases
This commit is contained in:
@@ -325,14 +325,14 @@ impl ApplicationDefaultCredentialsAuthenticator {
|
||||
pub async fn builder(
|
||||
opts: ApplicationDefaultCredentialsFlowOpts,
|
||||
) -> ApplicationDefaultCredentialsTypes<DefaultHyperClient> {
|
||||
Self::with_client(DefaultHyperClient, opts).await
|
||||
Self::with_client(opts, DefaultHyperClient).await
|
||||
}
|
||||
|
||||
/// Use the builder pattern to deduce which model of authenticator should be used and allow providing a hyper client
|
||||
#[cfg(feature = "service_account")]
|
||||
pub async fn with_client<C>(
|
||||
client: C,
|
||||
opts: ApplicationDefaultCredentialsFlowOpts,
|
||||
client: C,
|
||||
) -> ApplicationDefaultCredentialsTypes<C>
|
||||
where
|
||||
C: HyperClientBuilder,
|
||||
|
||||
Reference in New Issue
Block a user