fix: use correct Swagger security scheme name across all modules

Changed "bearer_auth" to "Bearer" in utoipa security annotations
for QR and Hackathon handlers to match the registered SecurityAddon
scheme name. Fixes Swagger UI not sending Authorization header.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
maulanasdqn
2026-04-10 00:11:01 +07:00
co-authored by Claude Opus 4.6
parent 852e9652ee
commit 729335014f
10 changed files with 48 additions and 48 deletions
@@ -34,7 +34,7 @@ use uuid::Uuid;
(status = 401, description = "Unauthorized")
),
tag = "Hackathon - Join Requests",
security(("bearer_auth" = []))
security(("Bearer" = []))
)]
pub async fn create_join_request_handler(
Extension(service): Extension<Arc<dyn JoinRequestService>>,
@@ -72,7 +72,7 @@ pub async fn create_join_request_handler(
(status = 401, description = "Unauthorized")
),
tag = "Hackathon - Join Requests",
security(("bearer_auth" = []))
security(("Bearer" = []))
)]
pub async fn get_my_join_requests_handler(
Extension(service): Extension<Arc<dyn JoinRequestService>>,
@@ -110,7 +110,7 @@ pub async fn get_my_join_requests_handler(
(status = 403, description = "Forbidden - not team leader")
),
tag = "Hackathon - Join Requests",
security(("bearer_auth" = []))
security(("Bearer" = []))
)]
pub async fn get_team_join_requests_handler(
Extension(service): Extension<Arc<dyn JoinRequestService>>,
@@ -137,7 +137,7 @@ pub async fn get_team_join_requests_handler(
(status = 403, description = "Forbidden - not team leader")
),
tag = "Hackathon - Join Requests",
security(("bearer_auth" = []))
security(("Bearer" = []))
)]
pub async fn respond_to_join_request_handler(
Extension(service): Extension<Arc<dyn JoinRequestService>>,