Skip to content

Commit

Permalink
Use domain while getting totp instead of url (#901)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykeremy authored Oct 3, 2024
1 parent 36135a6 commit 9e50456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skyvern/forge/sdk/services/bitwarden.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e50456

Please sign in to comment.