doy / rbw

unofficial bitwarden cli
https://git.tozt.net/rbw
Other
573 stars 82 forks source link

fix incorrect "Username or password is incorrect" error #183

Closed thimc closed 2 weeks ago

thimc commented 1 month ago

Hi,

I hacked together a proxy that basically proxies everything bitwarden related on my machine and prints the various requests and responses. I then logged in to bitwarden via the Firefox extension which works (no surprises there) and looked at the logs from my proxy and started comparing each request with what rbw is doing.

I noticed that the client_id query parameter in the /connect/token request is set to desktop but the Firefox extension is setting it to browser. After changing to browser I am now able to login again and I am not getting the "Username or password is incorrect" message.

This PR fixes https://github.com/doy/rbw/issues/182

yasn77 commented 4 weeks ago

@doy It would be great if this can be merged

reidlabwastaken commented 3 weeks ago

works great for me, don't have the issue anymore

pfr-dev commented 3 weeks ago

Seems that this does not fix the issue on all platforms #182

doy commented 2 weeks ago

i believe this should be fixed in #186 (i think cli is a better value to use here than browser). thanks for the patch though!