This commit is contained in:
Ruben Fiszel
2024-12-15 00:10:49 +01:00
parent 51c0373b4c
commit b169ddb9d3
3 changed files with 2 additions and 7 deletions

1
backend/Cargo.lock generated
View File

@@ -11225,7 +11225,6 @@ dependencies = [
"hmac",
"itertools 0.13.0",
"lazy_static",
"opentelemetry",
"prometheus",
"regex",
"reqwest 0.12.9",

View File

@@ -27,9 +27,6 @@ use windmill_api::{
SCIM_TOKEN,
};
#[cfg(feature = "enterprise")]
use windmill_api::{oauth2_ee::build_oauth_clients, OAUTH_CLIENTS};
#[cfg(feature = "enterprise")]
use windmill_common::ee::{jobs_waiting_alerts, worker_groups_alerts};
@@ -1470,8 +1467,8 @@ pub async fn reload_base_url_setting(db: &DB) -> error::Result<()> {
#[cfg(feature = "oauth2")]
{
let mut l = OAUTH_CLIENTS.write().await;
*l = build_oauth_clients(&base_url, oauths)
let mut l = windmill_api::OAUTH_CLIENTS.write().await;
*l = windmill_api::oauth2_ee::build_oauth_clients(&base_url, oauths)
.map_err(|e| tracing::error!("Error building oauth clients (is the oauth.json mounted and in correct format? Use '{}' as minimal oauth.json): {}", "{}", e))
.unwrap();
}

View File

@@ -44,4 +44,3 @@ axum.workspace = true
serde_urlencoded.workspace = true
regex.workspace = true
backon.workspace = true
opentelemetry.workspace = true