From 0e984cab150d7c511253c096b9122c823ffdf841 Mon Sep 17 00:00:00 2001
From: Mohammad Torkashvand <mohammad.torkashvand@geant.org>
Date: Thu, 18 Apr 2024 11:27:41 +0200
Subject: [PATCH] make http request upper case when sending data to OPA

---
 gso/auth/oidc_policy_helper.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gso/auth/oidc_policy_helper.py b/gso/auth/oidc_policy_helper.py
index 34eeede9..1ba2eb3b 100644
--- a/gso/auth/oidc_policy_helper.py
+++ b/gso/auth/oidc_policy_helper.py
@@ -425,7 +425,7 @@ def opa_decision(
                 **(opa_kwargs or {}),
                 **user_info,
                 "resource": request.url.path,
-                "method": request_method,
+                "method": request_method.upper(),
                 "arguments": {"path": request.path_params, "query": {**request.query_params}, "json": json},
             }
         }
-- 
GitLab