Explorar o código

[raz] Propagate the doAs user name to Raz

Romain Rigaux %!s(int64=4) %!d(string=hai) anos
pai
achega
67efd52582
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/core/src/desktop/lib/raz/raz_client.py

+ 1 - 1
desktop/core/src/desktop/lib/raz/raz_client.py

@@ -53,7 +53,7 @@ class RazToken:
 
   def get_delegation_token(self, user):
     ip_address = socket.gethostbyname(self.raz_hostname)
-    GET_PARAMS = {"op": "GETDELEGATIONTOKEN", "service": "%s:%s" % (ip_address, self.raz_port), "renewer": user}
+    GET_PARAMS = {"op": "GETDELEGATIONTOKEN", "service": "%s:%s" % (ip_address, self.raz_port), "renewer": "hue", "doAs": user}
     r = requests.get(self.raz_url, GET_PARAMS, auth=self.auth_handler, verify=False)
     self.raz_token = json.loads(r.text)['Token']['urlString']
     return self.raz_token