Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rbw login fails with 'Username or password is incorrect', while bw login succeeds #150

Closed
rpdelaney opened this issue Dec 17, 2023 · 5 comments

Comments

@rpdelaney
Copy link

rpdelaney commented Dec 17, 2023

$ rbw register  # Registration fails with 500
rbw register: failed to log in to bitwarden instance: api request returned error: 5000
$ rbw register  # If I use wrong keys, I get a different error (suggesting the problem is not a wrong key)
rbw register: failed to log in to bitwarden instance: incorrect api key

Did the SaSS API get updated?

@rpdelaney
Copy link
Author

rpdelaney commented Dec 17, 2023

I did not set the base URL in the config. Although the README suggests the default will be used if unset, having set it explicitly, I am now met with a 404:

$ rbw config show
{
  "email": "REDACTED",
  "base_url": "https://api.bitwarden.com/",
  "identity_url": null,
  "notifications_url": null,
  "lock_timeout": 3600,
  "sync_interval": 3600,
  "pinentry": "pinentry",
  "client_cert_path": null
}
$ rbw register
rbw register: failed to log in to bitwarden instance: api request returned error: 404

@rpdelaney
Copy link
Author

Not knowing where to go next, I did rbw config unset base_url and then I was able to register. No idea what was going on there, but if it works it works.

@rpdelaney
Copy link
Author

rpdelaney commented Dec 17, 2023

login with bw-cli vs rbw:

$ bw login
? Email address: REDACTED
? Master password: [hidden]
You are logged in!

To unlock your vault, set your session key to the `BW_SESSION` environment variable. ex:
  $ export BW_SESSION="REDACTED"
  $env:BW_SESSION=REDACTED"

You can also pass the session key to any command with the `--session` option. ex:
  $ bw list items --session REDACTED
$ rbw login
rbw login: failed to log in to bitwarden instance: Username or password is incorrect. Try again.
$

@rpdelaney rpdelaney reopened this Dec 17, 2023
@rpdelaney rpdelaney changed the title rbw register fails with HTTP 500 rbw login fails with 'Username or password is incorrect', while bw login succeeds Dec 17, 2023
@yazgoo
Copy link

yazgoo commented Dec 19, 2023

isn't it a duplicate of #145

@rpdelaney
Copy link
Author

Looks like it has become a duplicate yep. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants