Skip to content
Snippets Groups Projects
Commit 939c4198 authored by Chris Hines's avatar Chris Hines
Browse files

string not var!

parent e897c6c7
No related branches found
No related tags found
3 merge requests!77Revert "disable agressive kill and restart",!64Test,!63Dev
Pipeline #16324 passed
...@@ -435,6 +435,7 @@ class AppUrl(Resource): ...@@ -435,6 +435,7 @@ class AppUrl(Resource):
inst = json.loads(request.args.get('appinst')) inst = json.loads(request.args.get('appinst'))
inst['twsproxy']='{twsproxy}' inst['twsproxy']='{twsproxy}'
inst['twsproxyauth'] = request.cookies.get('twsproxyauth') inst['twsproxyauth'] = request.cookies.get('twsproxyauth')
logger.debug('twsproxyauth {} {}'.format(inst['twsproxyauth'],request.cookies.get('twsproxyauth')))
url = "{}/{}".format("{twsproxy}",appdef['client']['redir'].format(**inst)) url = "{}/{}".format("{twsproxy}",appdef['client']['redir'].format(**inst))
return url return url
except Exception as e: except Exception as e:
...@@ -447,7 +448,7 @@ class AppUrl(Resource): ...@@ -447,7 +448,7 @@ class AppUrl(Resource):
class SetTWSProxyAuth(Resource): class SetTWSProxyAuth(Resource):
def get(self, authtok): def get(self, authtok):
import urllib.parse 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 = make_response(redirect(url))
response.set_cookie('twsproxyauth', authtok, secure=True) response.set_cookie('twsproxyauth', authtok, secure=True)
return response return response
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment