Skip to content

Commit

Permalink
Merge pull request #507 from OpenUpSA/flask-security-slow-auth
Browse files Browse the repository at this point in the history
Remove auth header for internal API requests
  • Loading branch information
paulmwatson authored Jan 18, 2024
2 parents 2e3a388 + ff50775 commit 8b30aed
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pmg/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ def load_from_api(

logger.debug("Headers: %s" % headers)

# add auth header
if current_user.is_authenticated:
headers["Authentication-Token"] = current_user.get_auth_token()

try:
response = http.request(
"GET", API_URL + query_str, headers=headers, fields=params
Expand Down

0 comments on commit 8b30aed

Please sign in to comment.