From 20f33cf01a3928e08aa84b9c94771a4c03166f12 Mon Sep 17 00:00:00 2001 From: Nikola Date: Mon, 6 Mar 2023 09:47:16 +0100 Subject: [PATCH] fixed syntax typo --- eoxserver/services/auth/charonpdp.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eoxserver/services/auth/charonpdp.py b/eoxserver/services/auth/charonpdp.py index 155925e3a..543539bd7 100644 --- a/eoxserver/services/auth/charonpdp.py +++ b/eoxserver/services/auth/charonpdp.py @@ -293,7 +293,11 @@ def _getPartAction(self, action): # Get XML snippet for the Environment part of the XACMLAuthzDecisionQuery def _getPartEnvironment(self): now = datetime.datetime.now() - formattedNow = now.strftime("%Y-%m-%dT%H:%M:%S.%f%z")urlparse + formattedNow = now.strftime("%Y-%m-%dT%H:%M:%S.%f%z") + + return template_attribute.format(attrib_current_date, \ + dt_date, \ + formattedNow) # Get the full XACMLAuthzDecisionQuery def _getFullRequest(self, userAttributes, resourceAttributes, action): return template_request.format(self._getPartSubject(userAttributes), \