From 66a2bc8a0c5e8cc57e358374134a837434a4e89d Mon Sep 17 00:00:00 2001 From: Inex Code Date: Thu, 4 Jul 2024 20:58:57 +0400 Subject: [PATCH] test --- selfprivacy_api/graphql/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/selfprivacy_api/graphql/__init__.py b/selfprivacy_api/graphql/__init__.py index b3d1134..ecc885a 100644 --- a/selfprivacy_api/graphql/__init__.py +++ b/selfprivacy_api/graphql/__init__.py @@ -13,6 +13,9 @@ class IsAuthenticated(BasePermission): message = "You must be authenticated to access this resource." def has_permission(self, source: typing.Any, info: Info, **kwargs) -> bool: + connection_params = info.context.get("connection_params") + print("Printing connection params from the ws connect!") + print(connection_params) token = info.context["request"].headers.get("Authorization") if token is None: token = info.context["request"].query_params.get("token")