corpusops / bitwardentools

bitwarden python api client and additional tools like for migrating from vaultier to bitwarden (bitwarden_rs)
Other
38 stars 15 forks source link

Argon2id algorithm support? #26

Open Garulf opened 10 months ago

Garulf commented 10 months ago

When attempting to login to a vaultwarden instance using argon2id the program crashes with a invalid username or password.

image

from bitwardentools import Client

client = Client(SERVER, EMAIL, PASSWORD)

client.sync()
Traceback (most recent call last):
  File "E:\Users\Garulf\Projects\Garulf\bitwarden-flow\src\plugin.py", line 11, in <module>
    client = Client(SERVER, EMAIL, PASSWORD)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Users\Garulf\Projects\Garulf\bitwarden-flow\.venv\Lib\site-packages\bitwardentools\client.py", line 728, in __init__
    self.login()
  File "E:\Users\Garulf\Projects\Garulf\bitwarden-flow\.venv\Lib\site-packages\bitwardentools\client.py", line 829, in login
    raise exc
bitwardentools.client.LoginError: Failed login for *****@****.com ()

This is the text response from the server:

{"ErrorModel":{"Message":"Username or password is incorrect. Try again","Object":"error"},"ExceptionMessage":null,"ExceptionStackTrace":null,"InnerExceptionMessage":null,"Message":"Username or password is incorrect. Try again","Object":"error","ValidationErrors":{"":["Username or password is incorrect. Try again"]},"error":"","error_description":""}