Skip to content

Commit

Permalink
move to enterprise folder
Browse files Browse the repository at this point in the history
  • Loading branch information
t-aleksander committed Nov 15, 2024
1 parent ecb9092 commit 9890c98
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/enterprise/handlers/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod openid_login;
File renamed without changes.
1 change: 1 addition & 0 deletions src/enterprise/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod handlers;
3 changes: 1 addition & 2 deletions src/handlers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use crate::{error::ApiError, proto::core_response::Payload};

pub(crate) mod desktop_client_mfa;
pub(crate) mod enrollment;
pub(crate) mod openid_login;
pub(crate) mod password_reset;
pub(crate) mod polling;

Expand Down Expand Up @@ -49,7 +48,7 @@ where
/// Helper which awaits core response
///
/// Waits for core response with a given timeout and returns the response payload.
async fn get_core_response(rx: Receiver<Payload>) -> Result<Payload, ApiError> {
pub(crate) async fn get_core_response(rx: Receiver<Payload>) -> Result<Payload, ApiError> {
debug!("Fetching core response...");
if let Ok(core_response) = timeout(CORE_RESPONSE_TIMEOUT, rx).await {
debug!("Got gRPC response from Defguard core: {core_response:?}");
Expand Down
3 changes: 2 additions & 1 deletion src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ use url::Url;
use crate::{
assets::{index, svg, web_asset},
config::Config,
enterprise::handlers::openid_login,
error::ApiError,
grpc::ProxyServer,
handlers::{desktop_client_mfa, enrollment, openid_login, password_reset, polling},
handlers::{desktop_client_mfa, enrollment, password_reset, polling},
proto::proxy_server,
};

Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pub mod assets;
pub mod config;
mod enterprise;
mod error;
mod grpc;
mod handlers;
Expand Down

0 comments on commit 9890c98

Please sign in to comment.