raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.41k stars 3.11k forks source link

[Bitwarden Vault] ... #14123

Open zeitig opened 3 months ago

zeitig commented 3 months ago

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

Expected Behaviour

Actual Result:

raycastbot commented 3 months ago

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.
Inteleweb commented 3 months ago

same issue. MAC pro M1

jomifepe commented 3 months ago

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

defPhisy commented 2 months ago

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

dereknex commented 2 months ago
❯ 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.
jomifepe commented 2 months ago

@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 commented 2 months ago

@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.

dereknex commented 2 months ago

@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.

defPhisy commented 2 months ago

@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:

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

jomifepe commented 2 months ago

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.

defPhisy commented 2 months ago

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

jomifepe commented 2 months ago

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

blacroix commented 2 months ago

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

alvaroybanez commented 1 month ago

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

Thanks. 🙏