From e0022ef7b84f232f0278d3d263dc34ce6440c9ed Mon Sep 17 00:00:00 2001
From: Chris Hines <chris.hines@monash.edu>
Date: Fri, 9 Aug 2019 11:54:05 +0800
Subject: [PATCH] set additional cookie properties

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

diff --git a/TES/tes/apiendpoints.py b/TES/tes/apiendpoints.py
index 8df948f..0a7c379 100644
--- a/TES/tes/apiendpoints.py
+++ b/TES/tes/apiendpoints.py
@@ -475,7 +475,7 @@ class CreateTunnel(Resource):
                    localbind=localbind, authtok=authtok)
         response = make_response("")
         response.mime_type = 'application/json'
-        response.set_cookie('twsproxyauth', authtok)
+        response.set_cookie('twsproxyauth', authtok,httponly=True,samesite='Strict',secure=True)
         logger.debug('JobConnect.connect: connecting via redirect with cookie authtok set to  {}'.format(authtok))
         return response
 
-- 
GitLab