From 1d246d884ac4c087933e6420a87e6e814ab65c57 Mon Sep 17 00:00:00 2001 From: Derick M <58572875+TurtIeSocks@users.noreply.github.com> Date: Sat, 4 Nov 2023 14:52:41 -0400 Subject: [PATCH] fix: only basic auth for rdm --- server/api/src/utils/request.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/src/utils/request.rs b/server/api/src/utils/request.rs index e4ddf144..3ca27000 100644 --- a/server/api/src/utils/request.rs +++ b/server/api/src/utils/request.rs @@ -26,7 +26,7 @@ pub async fn send_api_req( let req = if let Some(api_key) = project.api_key { if let Some((username, password)) = api_key.split_once(":") { let (username, password) = (username.trim(), password.trim()); - if *scanner_type == ScannerType::Unown { + if *scanner_type == ScannerType::Unown || !project.scanner { req.get(endpoint).header(username, password) } else { req.get(endpoint).basic_auth(username, Some(password))