From 91b078c4a35d4cd07da3192c65617c10a9f608a0 Mon Sep 17 00:00:00 2001 From: Chris Burr Date: Wed, 27 Sep 2023 18:13:10 +0200 Subject: [PATCH] fix: Generating scopes for legacy token exchange --- src/DIRAC/FrameworkSystem/Service/ProxyManagerHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DIRAC/FrameworkSystem/Service/ProxyManagerHandler.py b/src/DIRAC/FrameworkSystem/Service/ProxyManagerHandler.py index 0294d4bba21..0a0f2f06f82 100644 --- a/src/DIRAC/FrameworkSystem/Service/ProxyManagerHandler.py +++ b/src/DIRAC/FrameworkSystem/Service/ProxyManagerHandler.py @@ -426,7 +426,7 @@ def export_exchangeProxyForToken(self): vo = Registry.getVOForGroup(credDict["group"]) dirac_properties = list(set(credDict.get("groupProperties", [])) | set(credDict.get("properties", []))) group = credDict["group"] - scopes = [f"vo:{vo}", f"group:{group}", [f"property:{prop}" for prop in dirac_properties]] + scopes = [f"vo:{vo}", f"group:{group}"] + [f"property:{prop}" for prop in dirac_properties] r = requests.get( f"{diracxUrl}/auth/legacy-exchange",