Skip to content

Commit

Permalink
Fix proxy call authorization to check correct id; Authorization still…
Browse files Browse the repository at this point in the history
… doesn't cause call rejection
  • Loading branch information
nieznanysprawiciel committed Sep 6, 2024
1 parent 57ee9c6 commit 27f9350
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/activity/src/http_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;
Expand Down

0 comments on commit 27f9350

Please sign in to comment.