Skip to content

Commit

Permalink
Merge pull request #4 from PADAS/gundi-3767-fix-login-with-pswd
Browse files Browse the repository at this point in the history
GUNDI-3767: Fix test password issue
  • Loading branch information
marianobrc authored Nov 28, 2024
2 parents d446b3d + ce493a3 commit 7839a91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/actions/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def action_auth(integration: Integration, action_config: AuthenticateConfi
async with AsyncERClient(
service_root=f"{url_parse.scheme}://{url_parse.hostname}/api/v1.0",
username=auth_config.username,
password=auth_config.password,
password=auth_config.password.get_secret_value() if auth_config.password else None,
token=auth_config.token,
token_url=f"{url_parse.scheme}://{url_parse.hostname}/oauth2/token",
client_id="das_web_client",
Expand Down Expand Up @@ -64,7 +64,7 @@ async def action_pull_events(integration: Integration, action_config: PullEvents
er_client = AsyncERClient(
service_root=f"{url_parse.scheme}://{url_parse.hostname}/api/v1.0",
username=auth_config.username or None,
password=auth_config.password or None,
password=auth_config.password.get_secret_value() if auth_config.password else None,
token=auth_config.token,
token_url=f"{url_parse.scheme}://{url_parse.hostname}/oauth2/token",
client_id="das_web_client",
Expand Down Expand Up @@ -128,7 +128,7 @@ async def action_pull_observations(integration: Integration, action_config: Pull
er_client = AsyncERClient(
service_root=f"{url_parse.scheme}://{url_parse.hostname}/api/v1.0",
username=auth_config.username or None,
password=auth_config.password or None,
password=auth_config.password.get_secret_value() if auth_config.password else None,
token=auth_config.token,
token_url=f"{url_parse.scheme}://{url_parse.hostname}/oauth2/token",
client_id="das_web_client",
Expand Down

0 comments on commit 7839a91

Please sign in to comment.