From 939c41986a242bd7260199f9fbdb70f14e32ec2b Mon Sep 17 00:00:00 2001
From: Chris Hines <chris.hines@monash.edu>
Date: Fri, 12 Mar 2021 14:36:34 +1100
Subject: [PATCH] string not var!

---
 tes/apiendpoints.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tes/apiendpoints.py b/tes/apiendpoints.py
index d46480a..63aae93 100644
--- a/tes/apiendpoints.py
+++ b/tes/apiendpoints.py
@@ -435,6 +435,7 @@ class AppUrl(Resource):
             inst = json.loads(request.args.get('appinst'))
             inst['twsproxy']='{twsproxy}'
             inst['twsproxyauth'] = request.cookies.get('twsproxyauth')
+            logger.debug('twsproxyauth {} {}'.format(inst['twsproxyauth'],request.cookies.get('twsproxyauth')))
             url = "{}/{}".format("{twsproxy}",appdef['client']['redir'].format(**inst))
             return url
         except Exception as e:
@@ -447,7 +448,7 @@ class AppUrl(Resource):
 class SetTWSProxyAuth(Resource):
     def get(self, authtok):
         import urllib.parse
-        url = urllib.parse.unquote(request.args.get(redirect))
+        url = urllib.parse.unquote(request.args.get('redirect'))
         response = make_response(redirect(url))
         response.set_cookie('twsproxyauth', authtok, secure=True)
         return response
-- 
GitLab