mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-01-10 04:39:45 +01:00
fix: service_account feature flag placement
This commit is contained in:
@@ -386,7 +386,12 @@ impl AuthorizedUserAuthenticator {
|
||||
authorized_user_secret: AuthorizedUserSecret,
|
||||
client: C,
|
||||
) -> AuthenticatorBuilder<C, AuthorizedUserFlow> {
|
||||
AuthenticatorBuilder::new(AuthorizedUserFlow { secret: authorized_user_secret }, client)
|
||||
AuthenticatorBuilder::new(
|
||||
AuthorizedUserFlow {
|
||||
secret: authorized_user_secret,
|
||||
},
|
||||
client,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -66,4 +66,4 @@ impl AuthorizedUserFlow {
|
||||
log::debug!("received response; head: {:?}, body: {:?}", head, body);
|
||||
TokenInfo::from_json(&body)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
// Copyright (c) 2016 Google Inc (lewinb@google.com).
|
||||
//
|
||||
// Refer to the project root for licensing information.
|
||||
#[cfg(feature = "service_account")]
|
||||
use crate::authorized_user::AuthorizedUserSecret;
|
||||
use crate::types::{ApplicationSecret, ConsoleApplicationSecret};
|
||||
use crate::{authorized_user::AuthorizedUserSecret, service_account::ServiceAccountKey};
|
||||
|
||||
#[cfg(feature = "service_account")]
|
||||
use crate::service_account::ServiceAccountKey;
|
||||
|
||||
use std::io;
|
||||
use std::path::Path;
|
||||
|
||||
@@ -91,13 +91,13 @@ pub mod storage;
|
||||
|
||||
mod types;
|
||||
|
||||
#[cfg(feature = "service_account")]
|
||||
pub use crate::authenticator::ServiceAccountAuthenticator;
|
||||
#[doc(inline)]
|
||||
pub use crate::authenticator::{
|
||||
ApplicationDefaultCredentialsAuthenticator, AuthorizedUserAuthenticator,
|
||||
DeviceFlowAuthenticator, InstalledFlowAuthenticator
|
||||
DeviceFlowAuthenticator, InstalledFlowAuthenticator,
|
||||
};
|
||||
#[cfg(feature = "service_account")]
|
||||
pub use crate::authenticator::ServiceAccountAuthenticator;
|
||||
|
||||
pub use crate::helper::*;
|
||||
pub use crate::installed::InstalledFlowReturnMethod;
|
||||
|
||||
Reference in New Issue
Block a user