extensions icon indicating copy to clipboard operation
extensions copied to clipboard

[Bitwarden Vault] ...

Open zeitig opened this issue 2 years ago β€’ 16 comments

Extension

https://www.raycast.com/jomifepe/bitwarden

Raycast Version

1.81.2

macOS Version

14.6.1

Description

Error:

Error: Command failed with exit code 1: /opt/homebrew/bin/bw status
(node:4164) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
/opt/homebrew/Cellar/bitwarden-cli/2024.6.1/libexec/lib/node_modules/@bitwarden/cli/build/bw.js:36503
                state.accounts[userId].profile = diskAccount.profile

### Steps To Reproduce

1. **I installed Bitwarden CLI using Homebrew:**
   ```bash
   brew install bitwarden-cli
  1. I configured the Bitwarden Vault extension in Raycast:

    • Opened Raycast.
    • Went to the Extensions section.
    • Installed the Bitwarden Vault extension.
    • In the extension settings, specified the path to the Bitwarden CLI using the output from the which bw command.
  2. I generated and configured API keys:

    • Created API keys in my Bitwarden account (or confirmed existing ones).
    • Entered these API keys into the Bitwarden Vault extension in Raycast.
  3. I returned to Raycast and attempted to unlock the vault:

    • When prompted, I entered the same master password into the Raycast extension.

Current Behaviour

  • After entering the master password, an Invalid master password error is displayed, despite the same password working in the CLI.
  • Additionally, the console logs a warning:
    (node:1338) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
    

Expected Behaviour

  • The Bitwarden Vault should unlock successfully in Raycast.

Actual Result:

zeitig avatar Aug 21 '24 17:08 zeitig

Thank you for opening this issue!

πŸ”” @jomifepe @daniel-stoneuk @andreaselia @pernielsentikaer @eth-p @YamenSharaf @undefinedzack @anirudhganwal06 @ivaarsson you might want to have a look.

πŸ’‘ Author and Contributors commands

The author and contributors of jomifepe/bitwarden can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot close as not planned Closes the issue as not planned.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopens the issue.
  • @raycastbot assign me Assigns yourself to the issue.
  • @raycastbot good first issue Adds the "Good first issue" label to the issue.
  • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.

raycastbot avatar Aug 21 '24 17:08 raycastbot

same issue. MAC pro M1

Inteleweb avatar Aug 24 '24 05:08 Inteleweb

Hey, you're most likely on CLI version 2024.6.1, which has an issue, please try updating. Refer to this comment: https://github.com/raycast/extensions/issues/13329#issuecomment-2238743439

jomifepe avatar Aug 24 '24 20:08 jomifepe

same error: "client_id or client_secret is incorrect. Try again." versions i tried: 2024.6.0, .6.1, .7.2, .8.1 without success cli login works without any problems

philippspitzley avatar Sep 02 '24 09:09 philippspitzley

❯ bw -v
(node:7551) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
2024.8.1

try login in with master password, then copy last error as below:

(node:7673) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Invalid master password.

dereknex avatar Sep 03 '24 01:09 dereknex

@defPhisy When you say

cli login works without any problems

Do you mean with client id and secret? Or with password? Is the extension pointing to the correct CLI path?

jomifepe avatar Sep 06 '24 18:09 jomifepe

@dereknex Same as above, do you have any other CLI version installed? The Bitwarden CLI Path preference should be pointing to the same path as the bw you're using in your terminal. You can run which bw to check that.

jomifepe avatar Sep 06 '24 18:09 jomifepe

@dereknex Same as above, do you have any other CLI version installed? The Bitwarden CLI Path preference should be pointing to the same path as the bw you're using in your terminal. You can run which bw to check that.

Thanks for the reply, I tried logging out and trying again with no problem.

dereknex avatar Sep 07 '24 03:09 dereknex

@jomifepe tried both:

  1. cli with mail, password and otp works
  2. cli with client_id and client_secret works
  3. with which bw i took the cli path and pasted it into CLI Path field in your extension
  4. your extension asks for master pw
  5. typing my master pw throws error: client_id or client_secret is incorrect. Try again.

My setup:

  • M2 Macbook Air with Sonoma 14.6.1
  • raycast 1.82.3
  • bw cli 2024.8.1
  • installed bw cli with npm, because bitwarden suggest to install it not via homebrew
  • npm 10.7.0

Not sure if this is relevant but i might use the letters Àâü in my master password.

philippspitzley avatar Sep 07 '24 19:09 philippspitzley

Hard to tell what the issue is, I'm not aware of a bug around incorrect client id or secret. That said, please check if those are correct (no leading or trailing spaces). As a last resort, try reinstalling the extension to force clean every possible value.

jomifepe avatar Sep 07 '24 22:09 jomifepe

@jomifepe: After a fresh install of everything it works now. Still don't know what the issue was but thanks for your help.

philippspitzley avatar Sep 08 '24 11:09 philippspitzley

Cool, I will investigate what might be getting cached that prevents logging in.

jomifepe avatar Sep 09 '24 08:09 jomifepe

Try to uninstall the extension (keeping the bw CLI installed) then install back the extension. It ends up working for me that way.

blacroix avatar Sep 13 '24 09:09 blacroix

@jomifepe came to ask about the "invalid master password", after forcing the which bw in the extension path, everything is working appropriately.

Thanks. πŸ™

alvaroybanez avatar Oct 20 '24 10:10 alvaroybanez

This issue has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊

raycastbot avatar Dec 09 '24 12:12 raycastbot

This issue has been automatically closed due to inactivity.

Feel free to comment in the thread when you're ready to continue working on it πŸ™‚

You can also catch us in Slack if you want to discuss this.

raycastbot avatar Dec 19 '24 13:12 raycastbot