Skip to content

Commit

Permalink
Merge pull request #827 from wklken/ft_login_esb_apis
Browse files Browse the repository at this point in the history
fix(esb/usermanage): fix usermanage username missing after esb proxy
  • Loading branch information
wklken authored Mar 31, 2022
2 parents 786b7e0 + 148ec7d commit c565a8b
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ class UsermanageComponent(ConfComponent):
api_type = API_TYPE_Q

def handle(self):
request_info = self.get_request_info()
extra_params = {}
username = self.request.kwargs.get("username")
if username:
extra_params["username"] = username

request_info = self.get_request_info(extra_params=extra_params)
# request_info = self.get_request_info()

response = self.outgoing.http_client.request(
self.dest_http_method,
Expand All @@ -34,6 +40,7 @@ def handle(self):
headers={
"Bk-Username": self.current_user.username,
"Bk-App-Code": self.request.app_code,
"Content-Type": "application/json",
},
)

Expand Down

0 comments on commit c565a8b

Please sign in to comment.