Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3356210
D12416.id41442.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12416.id41442.diff
View Options
diff --git a/services/reports/src/http/handlers.rs b/services/reports/src/http/handlers.rs
--- a/services/reports/src/http/handlers.rs
+++ b/services/reports/src/http/handlers.rs
@@ -1,4 +1,5 @@
use actix_web::{get, post, web, HttpResponse};
+use comm_lib::http::auth::get_comm_authentication_middleware as auth_middleware;
use http::header;
use serde::Deserialize;
@@ -45,7 +46,7 @@
// e.g. filter by platform, report type, user, etc.
}
-#[get("")]
+#[get("", wrap = "auth_middleware()")]
async fn query_reports(
query: web::Query<QueryOptions>,
service: ReportsService,
@@ -56,7 +57,7 @@
Ok(response)
}
-#[get("/{report_id}")]
+#[get("/{report_id}", wrap = "auth_middleware()")]
async fn get_single_report(
path: web::Path<String>,
service: ReportsService,
@@ -70,7 +71,7 @@
Ok(response)
}
-#[get("/{report_id}/redux-devtools.json")]
+#[get("/{report_id}/redux-devtools.json", wrap = "auth_middleware()")]
async fn redux_devtools_import(
path: web::Path<String>,
service: ReportsService,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 5:24 PM (19 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2576618
Default Alt Text
D12416.id41442.diff (1 KB)
Attached To
Mode
D12416: [reports] Require auth for viewing reports
Attached
Detach File
Event Timeline
Log In to Comment