Skip to content

Commit

Permalink
fix: do not send user name to grafana
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemSBulgakov committed Nov 27, 2024
1 parent 8693485 commit 9914081
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions adminpage/sport/views/grafana_proxy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import urllib.parse
from revproxy.views import ProxyView


Expand All @@ -9,7 +8,6 @@ def get_proxy_request_headers(self, request):
headers = super(GrafanaProxyView, self).get_proxy_request_headers(request)
# Pass authentication to Grafana
headers['X-WEBAUTH-EMAIL'] = request.user.email
headers['X-WEBAUTH-NAME'] = urllib.parse.quote((request.user.first_name + ' ' + request.user.last_name).strip())
# Set original Host
headers['Host'] = request.get_host()
return headers

0 comments on commit 9914081

Please sign in to comment.