Skip to content

Commit

Permalink
Fix auth.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tcezard committed Sep 25, 2023
1 parent 1d7c13e commit f1cc732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(self, ena_auth_url=ENA_AUTH_URL):
@lru_cache
def token(self):
self.info("Proceeding with ENA Webin authentication...")
self._get_webin_username_password()
username, password = self._get_webin_username_password()
headers = {"accept": "*/*", "Content-Type": "application/json"}
data = {"authRealms": ["ENA"], "username": username, "password": password}
response = requests.post(self.ena_auth_url, headers=headers, data=json.dumps(data))
Expand Down

0 comments on commit f1cc732

Please sign in to comment.