From 9e50456995af7dea3c9f491d8434af155c87b4ca Mon Sep 17 00:00:00 2001 From: Kerem Yilmaz Date: Wed, 2 Oct 2024 19:02:55 -0700 Subject: [PATCH] Use domain while getting totp instead of url (#901) --- skyvern/forge/sdk/services/bitwarden.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skyvern/forge/sdk/services/bitwarden.py b/skyvern/forge/sdk/services/bitwarden.py index 884cbbc5c..f2ef1294e 100644 --- a/skyvern/forge/sdk/services/bitwarden.py +++ b/skyvern/forge/sdk/services/bitwarden.py @@ -193,7 +193,7 @@ async def _get_secret_value_from_url( # TODO (kerem): To make this more robust, we need to store the item id of the totp login item # and use it here to get the TOTP code for that specific item - totp_command = ["bw", "get", "totp", url, "--session", session_key] + totp_command = ["bw", "get", "totp", domain, "--session", session_key] if bw_organization_id: # We need to add this filter because the TOTP command fails if there are multiple results # For now, we require that the bitwarden organization id has only one totp login item for the domain