Skip to content

Commit

Permalink
add authorization header
Browse files Browse the repository at this point in the history
Signed-off-by: Amir Malka <[email protected]>
  • Loading branch information
amirmalka committed Jan 6, 2025
1 parent 985716e commit bebea36
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion infrastructure/backend_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2058,7 +2058,10 @@ def ws_export_open(self, url):
Logger.logger.debug("WS connection url:{0}".format(server))
for cookie in self.selected_tenant_cookie:
cookie = "Cookie: {}={}".format(cookie.name, cookie.value)
ws.connect(server, header=[cookie])

authorization = f"Authorization: Bearer {self.api_login.get_frontEgg_auth_user_id()}",

ws.connect(server, header=[cookie, authorization])
return ws

def ws_send(self, ws, message):
Expand Down

0 comments on commit bebea36

Please sign in to comment.