diff --git a/isduba/client.py b/isduba/client.py index 977bd7d..d98be6b 100644 --- a/isduba/client.py +++ b/isduba/client.py @@ -61,7 +61,7 @@ def login(self, username: str, password: str): response.raise_for_status() auth_url = f"{response.json()['keycloak_url']}/realms/{response.json()['keycloak_realm']}/protocol/openid-connect/token" response = client.post( - auth_url, data={"client_id": "auth", "username": username, "password": "Aingee6i", "grant_type": "password"} + auth_url, data={"client_id": "auth", "username": username, "password": password, "grant_type": "password"} ) response.raise_for_status() self.token = response.json()["access_token"]