From 27f93502fa82db636a84c6cf5d88837622dabdf7 Mon Sep 17 00:00:00 2001 From: "nieznany.sprawiciel" Date: Fri, 6 Sep 2024 13:48:10 +0200 Subject: [PATCH] Fix proxy call authorization to check correct id; Authorization still doesn't cause call rejection --- core/activity/src/http_proxy.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/activity/src/http_proxy.rs b/core/activity/src/http_proxy.rs index d0c06a1b97..06e7bb5fde 100644 --- a/core/activity/src/http_proxy.rs +++ b/core/activity/src/http_proxy.rs @@ -44,9 +44,12 @@ async fn proxy_http_request( let activity_id = path_activity_url.activity_id; let path = path_activity_url.url; - let result = authorize_activity_executor(&db, id.identity, &activity_id, Role::Requestor).await; + let result = + authorize_activity_initiator(&db, id.identity, &activity_id, Role::Requestor).await; if let Err(e) = result { - log::error!("Authorize error {}", e); + log::info!( + "Proxy authorize error (currently not authorized requests are not rejected): {e}" + ); } let agreement = get_activity_agreement(&db, &activity_id, Role::Requestor).await?;