Jump to content

blacs30

Member
  • Posts

    40
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by blacs30

  1. 1 minute ago, jpm said:

    It does! And as you suggest, I can then unlock and lock without problem. Also, I now have 2 Keychain entries.

     

    That works fine. It also asks for my client_secret when I log back in for the first time. Also, each time I use client_secret, Bitwarden thinks I'm logging in from a new device (I get an email).

     

    I still have one minor issue. If I log out via the workflow, then trigger the workflow again (either via shortcut or '.bw'), it no longer shows the 'logged out', 'log in' options, but the 'locked', 'unlock' ones instead. If I select those then unlock via password, I get notified that I'm not logged in, but don't get sent to a login field.

     

    Basically, I can easily login in by going to '.bwauth', but the workflow isn't putting login options up front when I'm logged out.

     

    Thanks for all your help here. Happy to send more logs if it helps.

     

    So do I understand that you got the workflow partly working now?
    One thing which doesn't really work yet easily is the usage of the bitwarden-cli in the terminal and in parallel the bitwarden workflow. that is because the session token will change each time an unlock happens and all the secrets are re-encrypted.

    As a workaround you can use this script to share the same token between the cli and the workflow https://github.com/luckman212/bitwarden-cli-helpers

     

    Thanks for mentioning the issue that after logout the wrong item is placed to unlock.. that will require a fix from my side.
     

  2. 6 hours ago, jpm said:

    I'm afraid not. When I first login, I get a notification of success, but then everything I do after that redirects me to login again.

     

    If it's any use, here is the log when I log in then (try to) log out immediately afterwards.

     

    [15:58:53.279] Bitwarden v2[Script Filter] Queuing argument '(null)'
    [15:58:53.378] Bitwarden v2[Script Filter] Script with argv '(null)' finished
    [15:58:53.380] STDERR: Bitwarden v2[Script Filter] 🍺
    15:58:53 workflow.go:328: -------- Bitwarden v2/2.4.3 (AwGo/0.27.1) --------
    15:58:53 main.go:162: &main.options{Search:false, Config:false, SetConfigs:false, Auth:true, Sfa:false, Lock:false, Icons:false, Folder:false, Unlock:false, Login:false, Logout:false, Sync:false, Open:false, GetItem:false, Force:false, Totp:false, Last:false, Background:false, Id:"", Query:"", Attachment:"", Output:""}
    15:58:53 main.go:164: args=[]string{"-auth", "--", ""} => []string{""}
    15:58:53 main.go:165: (main.config) {
     AutoFetchIconCacheAge: (int) 1440,
     AutoFetchIconMaxCacheAge: (time.Duration) 24h0m0s,
     BwconfKeyword: (string) (len=9) ".bwconfig",
     BwauthKeyword: (string) (len=7) ".bwauth",
     BwKeyword: (string) (len=3) ".bw",
     BwfKeyword: (string) (len=4) ".bwf",
     BwExec: (string) (len=2) "bw",
     BwDataPath: (string) "",
     Debug: (bool) false,
     Email: (string) (len=23) "foo@fastmail.com",
     EmptyDetailResults: (bool) false,
     IconCacheAge: (int) 43200,
     IconCacheEnabled: (bool) true,
     IconMaxCacheAge: (time.Duration) 720h0m0s,
     MaxResults: (int) 1000,
     Mod1: (string) (len=3) "alt",
     Mod1Action: (string) (len=13) "username,code",
     Mod2: (string) (len=5) "shift",
     Mod2Action: (string) (len=3) "url",
     Mod3: (string) (len=4) "ctrl",
     Mod3Action: (string) (len=4) "totp",
     Mod4: (string) (len=7) "cmd,opt",
     Mod4Action: (string) (len=4) "more",
     NoModAction: (string) (len=13) "password,card",
     OutputFolder: (string) (len=34) "/Users/foo/Downloads/",
     Path: (string) (len=101) "/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/local/share/npm/bin:/usr/bin:/usr/sbin:/opt/homebrew/bin",
     ReorderingDisabled: (bool) true,
     Server: (string) "",
     Sfa: (bool) false,
     SfaMode: (int) 0,
     SkipTypes: (string) "",
     SyncCacheAge: (int) 10080,
     SyncMaxCacheAge: (time.Duration) 168h0m0s,
     TitleWithUser: (bool) true,
     TitleWithUrls: (bool) true,
     OpenLoginUrl: (bool) true
    }
    15:58:53 cli.go:303: filtering auth config "" ...
    15:58:53 feedback.go:509: Sent 4 result(s) to Alfred
    15:58:53 workflow.go:405: ------------------- 2.542125ms -------------------
    [15:58:53.383] Bitwarden v2[Script Filter] {
      "variables": {
        "AW_SESSION_ID": "CTSNJDEAKYFSPC6HTND8N0UA"
      },
      "items": [
        {
          "title": "Login to Bitwarden",
          "subtitle": "↩ or ⇥ to login now",
          "valid": true,
          "icon": {
            "path": "icons/on.png"
          },
          "variables": {
            "action": "-login",
            "email": "foo@fastmail.com",
            "mapsfamode": " ",
            "sfamode": "-1",
            "type": "login"
          }
        },
        {
          "title": "Logout",
          "subtitle": "Logout from Bitwarden",
          "valid": true,
          "icon": {
            "path": "icons/off.png"
          },
          "variables": {
            "action": "-logout"
          }
        },
        {
          "title": "Unlock",
          "subtitle": "Unlock Bitwarden",
          "valid": true,
          "icon": {
            "path": "icons/on.png"
          },
          "variables": {
            "action": "-unlock",
            "email": "foo@fastmail.com",
            "type": "unlock"
          }
        },
        {
          "title": "Lock",
          "subtitle": "Lock Bitwarden",
          "valid": true,
          "icon": {
            "path": "icons/off.png"
          },
          "variables": {
            "action": "-lock"
          }
        }
      ]
    }
    [15:58:54.927] Bitwarden v2[Script Filter] Processing complete
    [15:58:54.928] Bitwarden v2[Script Filter] Passing output '' to Conditional
    [15:58:54.928] Bitwarden v2[Conditional] Processing complete
    [15:58:54.929] Bitwarden v2[Conditional] Passing output '' to Run Script
    [15:59:03.765] Bitwarden v2[Run Script] Processing complete
    [15:59:03.773] Bitwarden v2[Run Script] Passing output 'Logged in.
    ' to Post Notification
    [15:59:05.532] Bitwarden v2[Script Filter] Queuing argument '(null)'
    [15:59:05.647] Bitwarden v2[Script Filter] Script with argv '(null)' finished
    [15:59:05.648] STDERR: Bitwarden v2[Script Filter] 🍺
    15:59:05 workflow.go:328: -------- Bitwarden v2/2.4.3 (AwGo/0.27.1) --------
    15:59:05 main.go:162: &main.options{Search:false, Config:false, SetConfigs:false, Auth:true, Sfa:false, Lock:false, Icons:false, Folder:false, Unlock:false, Login:false, Logout:false, Sync:false, Open:false, GetItem:false, Force:false, Totp:false, Last:false, Background:false, Id:"", Query:"", Attachment:"", Output:""}
    15:59:05 main.go:164: args=[]string{"-auth", "--", ""} => []string{""}
    15:59:05 main.go:165: (main.config) {
     AutoFetchIconCacheAge: (int) 1440,
     AutoFetchIconMaxCacheAge: (time.Duration) 24h0m0s,
     BwconfKeyword: (string) (len=9) ".bwconfig",
     BwauthKeyword: (string) (len=7) ".bwauth",
     BwKeyword: (string) (len=3) ".bw",
     BwfKeyword: (string) (len=4) ".bwf",
     BwExec: (string) (len=2) "bw",
     BwDataPath: (string) "",
     Debug: (bool) false,
     Email: (string) (len=23) "foo@fastmail.com",
     EmptyDetailResults: (bool) false,
     IconCacheAge: (int) 43200,
     IconCacheEnabled: (bool) true,
     IconMaxCacheAge: (time.Duration) 720h0m0s,
     MaxResults: (int) 1000,
     Mod1: (string) (len=3) "alt",
     Mod1Action: (string) (len=13) "username,code",
     Mod2: (string) (len=5) "shift",
     Mod2Action: (string) (len=3) "url",
     Mod3: (string) (len=4) "ctrl",
     Mod3Action: (string) (len=4) "totp",
     Mod4: (string) (len=7) "cmd,opt",
     Mod4Action: (string) (len=4) "more",
     NoModAction: (string) (len=13) "password,card",
     OutputFolder: (string) (len=34) "/Users/foo/Downloads/",
     Path: (string) (len=101) "/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/local/share/npm/bin:/usr/bin:/usr/sbin:/opt/homebrew/bin",
     ReorderingDisabled: (bool) true,
     Server: (string) "",
     Sfa: (bool) false,
     SfaMode: (int) 0,
     SkipTypes: (string) "",
     SyncCacheAge: (int) 10080,
     SyncMaxCacheAge: (time.Duration) 168h0m0s,
     TitleWithUser: (bool) true,
     TitleWithUrls: (bool) true,
     OpenLoginUrl: (bool) true
    }
    15:59:05 cli.go:303: filtering auth config "" ...
    15:59:05 feedback.go:509: Sent 4 result(s) to Alfred
    15:59:05 workflow.go:405: ------------------- 2.795916ms -------------------
    [15:59:05.652] Bitwarden v2[Script Filter] {
      "variables": {
        "AW_SESSION_ID": "G77DBL59DWUFZTQX1HU9ABVF"
      },
      "items": [
        {
          "title": "Login to Bitwarden",
          "subtitle": "↩ or ⇥ to login now",
          "valid": true,
          "icon": {
            "path": "icons/on.png"
          },
          "variables": {
            "action": "-login",
            "email": "foo@fastmail.com",
            "mapsfamode": " ",
            "sfamode": "-1",
            "type": "login"
          }
        },
        {
          "title": "Logout",
          "subtitle": "Logout from Bitwarden",
          "valid": true,
          "icon": {
            "path": "icons/off.png"
          },
          "variables": {
            "action": "-logout"
          }
        },
        {
          "title": "Unlock",
          "subtitle": "Unlock Bitwarden",
          "valid": true,
          "icon": {
            "path": "icons/on.png"
          },
          "variables": {
            "action": "-unlock",
            "email": "foo@fastmail.com",
            "type": "unlock"
          }
        },
        {
          "title": "Lock",
          "subtitle": "Lock Bitwarden",
          "valid": true,
          "icon": {
            "path": "icons/off.png"
          },
          "variables": {
            "action": "-lock"
          }
        }
      ]
    }
    [15:59:06.739] Bitwarden v2[Script Filter] Processing complete
    [15:59:06.745] Bitwarden v2[Script Filter] Passing output '' to Conditional
    [15:59:06.746] Bitwarden v2[Conditional] Processing complete
    [15:59:06.746] Bitwarden v2[Conditional] Passing output '' to Hide Alfred
    [15:59:06.747] Bitwarden v2[Hide Alfred] Processing complete
    [15:59:06.748] Bitwarden v2[Hide Alfred] Passing output '' to Run Script
    [15:59:07.438] ERROR: Bitwarden v2[Run Script] 🍺
    15:59:06 workflow.go:328: -------- Bitwarden v2/2.4.3 (AwGo/0.27.1) --------
    15:59:06 main.go:162: &main.options{Search:false, Config:false, SetConfigs:false, Auth:false, Sfa:false, Lock:false, Icons:false, Folder:false, Unlock:false, Login:false, Logout:true, Sync:false, Open:false, GetItem:false, Force:false, Totp:false, Last:false, Background:false, Id:"", Query:"", Attachment:"", Output:""}
    15:59:06 main.go:164: args=[]string{"-logout"} => []string{}
    15:59:06 main.go:165: (main.config) {
     AutoFetchIconCacheAge: (int) 1440,
     AutoFetchIconMaxCacheAge: (time.Duration) 24h0m0s,
     BwconfKeyword: (string) (len=9) ".bwconfig",
     BwauthKeyword: (string) (len=7) ".bwauth",
     BwKeyword: (string) (len=3) ".bw",
     BwfKeyword: (string) (len=4) ".bwf",
     BwExec: (string) (len=2) "bw",
     BwDataPath: (string) "",
     Debug: (bool) false,
     Email: (string) (len=23) "foo@fastmail.com",
     EmptyDetailResults: (bool) false,
     IconCacheAge: (int) 43200,
     IconCacheEnabled: (bool) true,
     IconMaxCacheAge: (time.Duration) 720h0m0s,
     MaxResults: (int) 1000,
     Mod1: (string) (len=3) "alt",
     Mod1Action: (string) (len=13) "username,code",
     Mod2: (string) (len=5) "shift",
     Mod2Action: (string) (len=3) "url",
     Mod3: (string) (len=4) "ctrl",
     Mod3Action: (string) (len=4) "totp",
     Mod4: (string) (len=7) "cmd,opt",
     Mod4Action: (string) (len=4) "more",
     NoModAction: (string) (len=13) "password,card",
     OutputFolder: (string) (len=34) "/Users/foo/Downloads/",
     Path: (string) (len=101) "/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/local/share/npm/bin:/usr/bin:/usr/sbin:/opt/homebrew/bin",
     ReorderingDisabled: (bool) true,
     Server: (string) "",
     Sfa: (bool) false,
     SfaMode: (int) 0,
     SkipTypes: (string) "",
     SyncCacheAge: (int) 10080,
     SyncMaxCacheAge: (time.Duration) 168h0m0s,
     TitleWithUser: (bool) true,
     TitleWithUrls: (bool) true,
     OpenLoginUrl: (bool) true
    }
    15:59:06 bitwarden.go:544: Clearing items cache.
    15:59:06 files.go:49: deleted contents of "/Users/foo/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.lisowski-development.alfred.bitwarden"
    15:59:07 utils.go:30: [ERROR] ==>  [You are not logged in.]
    15:59:07 utils.go:42: [ERROR] ==> Exit code 1. Logout of Bitwarden failed. Err: You are not logged in.
    15:59:07 workflow.go:376: [ERROR] Logout of Bitwarden failed. Error:
    You are not logged in.
    15:59:07 workflow.go:379: Get help at https://github.com/blacs30/bitwarden-alfred-workflow/issues
    15:59:07 workflow.go:402: ------------------ 675.44425ms -------------------
    [15:59:07.459] Bitwarden v2[Run Script] Processing complete
    [15:59:07.460] Bitwarden v2[Run Script] Passing output 'Logout of Bitwarden failed. Error:
    You are not logged in.' to Post Notification

     

    Thanks for the logs. 
    2 more things I haven't asked yet;

    - Does the bw login work fine in the terminal? Can you try that, and once you are logged in, then the alfred workflow just needs an unlock

    - run a normal `bw logout` in the terminal and then delete this file: `rm ~/Library/Application\ Support/Bitwarden\ CLI/data.json` (it contains the encrypted secrets, loaded from the bitwarden server); then run bw login again, via terminal and/or via workflow

  3. 2 hours ago, jpm said:

     

    I am having this same problem (on Monterey, with v2.4.3 of the workflow, the latest CLI, Alfred granted full access). I seem to login successfully the first time, but when I go to do anything else such as sync, I have to log in again, and get stuck in a loop. Like @dhahn, I only have the one Keychain entry, for application password.

     

    Additionally, each time I try to log in after the first time, I get the following error:

    [14:01:55.747] Bitwarden v2[Script Filter] Processing complete
    [14:01:55.748] Bitwarden v2[Script Filter] Passing output '' to Conditional
    [14:01:55.749] Bitwarden v2[Conditional] Processing complete
    [14:01:55.750] Bitwarden v2[Conditional] Passing output '' to Run Script
    [14:02:07.612] STDERR: Bitwarden v2[Run Script] Error: security: SecKeychainItemCreateFromContent (<default>): The specified item already exists in the keychain.
    [14:02:07.619] Bitwarden v2[Run Script] Processing complete
    [14:02:07.620] Bitwarden v2[Run Script] Passing output '' to Post Notification

     

     

    Can you try and delete all `com.lisowski-development.alfred.bitwarden` items from keychain and run the login process again? It fails here in the javascript where it would write the received token into keychain.

  4. 35 minutes ago, jpizzle said:

    @blacs30

     

    I have done this with both versions and fuzzy filtering was great in 2.2.x. In 2.4.x it is almost unusable.

     

    Sometimes I'll type in the name of the item exactly and it still won't populate at the top of the results.

     

    I just tried it the fuzzy filtering (de-selected Alfreds filter results for the "Search Bitwarden" item). The results were quite good for me. But I had disabled TITLE_WITH_URLS and TITLE_WITH_USER. With those two configs enabled the results are not so good. Maybe it's easier when the text is shorter? I've also set REORDERING_DISABLED to false now to test it little bit more in real live to have my frequently used items on the top.

  5. On 3/9/2022 at 2:12 AM, jpizzle said:

    @blacs30 thanks, saw your update in release 2.4.3!

     

    @deanishe any idea why fuzzy filtering is drastically worse in 2.4.x versions as opposed to 2.2.x and how it can be improved? 

    Have you looked that this page https://github.com/blacs30/bitwarden-alfred-workflow/#search---filtermode

    Does it change if you try between those 2 modes?
    In the end I agree with you the search, specially for Bitwarden, is not even close as good as in the Browser plugin (which btw. I haven't used and not even installed for months.)

  6. @jpizzle Thanks for pointing this out. The text doesn't match the behavior.

    Currently it's hard coded to open the url. I can make the action configurable, that makes sense I think.

    As a workaround you could clone the repo, update this line https://github.com/blacs30/bitwarden-alfred-workflow/blob/master/src/config.go#L400 from "-open" to "output".

    Then compile the code again with `make build universal-binary` and replace the existing binary with the new compiled one.

  7. 1 minute ago, bargepole said:

     

    @blacs30 thanks so much for the rapid response! Well, that's embarrassing. I repeated the Path Configuration step, and realised I had added my path with a semicolon (not a colon, as stated). It works now! Thank you for the very helpful workflow.

     

    I wonder though, given that my path is "/usr/local/bin/" and that the default PATH value was as follows, perhaps this was a redundant step for me (as it includes "/usr/local/bin/")?

     

    /usr/bin:/usr/local/bin:/usr/local/sbin:/usr/local/share/npm/bin:/usr/bin:/usr/sbin

     

     

     

    Good to hear it's working now. Actually that is an improvement that could be maybe implemented to support both, comma and semicolon separated path. It would avoid problems like this.
     

    Regarding the redundant step.. it could be, but I think node also needs to be in the path for the typical bitwarden cli installation..  so I'm not absolutely sure in this case.

  8. 39 minutes ago, bargepole said:

     

    Hello all, has anyone had this issue logging into Bitwarden using this workflow? I have 2FA configured, and the workflow requests my 2FA code. However, no matter how many times I try, I get this error:
     

     

    Here's Alfred's debugging output, if relevant:
     

     

    Thanks advance or any clues!

    Screenshot 2022-02-14 at 10.18.27.png

     

    @bargepole,

    that is a strange error, I don't see that it's coming directly from the workflow Golang/js code.
    Does the bw cli work fine from the terminal?

    If yes could you try and take the PATH env var content from the terminal and set the Path workflow var to the same value?

  9. On 1/15/2022 at 2:17 AM, dhahn said:


    I found only 1 entry. Is there a way to completely uninstall and and try again fresh?
     

    Keychain_Access_and_Bitwarden_CLI_-_Get_passwords__username__TOTP_and_more_from_Bitwarden_-_Page_4_-_Share_your_Workflows_-_Alfred_App_Community_Forum_and_Spark_-_mr_hahn_gmail_com_and_Which_Split_is_Easier__Front_Split_vs_Side_Split_–_Jour.jpg

     

    Others seem to run the workflow fine on macOS 12.

    - Please update to the latest workflow if you haven't already (https://github.com/blacs30/bitwarden-alfred-workflow/releases/tag/2.4.1)

    - remove the one entry in keychain access

     

    - use the Bitwarden CLI in the terminal to check that the login works fine (try OTP or email as second factor first)

    - then try to use the Alfred Bitwarden again 

  10. @dhahn

    Thanks for reporting the issue here (https://github.com/blacs30/bitwarden-alfred-workflow/ would be also a good place alternatively).

    Could you please do the following 2 things and let me know the result of it:

    1. In the keychain access app can you please search for items which have this name "com.lisowski-development.alfred.bitwarden - the result should be 2, one with account name token and the other encryptPassword

    2. could you please try to login in the terminal to bitwarden via the bitwarden cli to verify that this works.

     

    I haven't tested this workflow with macOS 12 yet. If others have good or bad experience with this workflow on macOS 12 it would be great to know.

     

  11. 18 hours ago, prynn said:

    Hey, I cannot get the .bwauto to run, would like to sync new items twice a day. 

     

    My AUTOSYNC_TIMES value is "8:15,23:45"

     

    AUTO_HOUR = 0

    AUTO_MIN = 0

     

     

    I'm getting this error: "Could not install service, check logfiles for details"

     

    Where do I see the logs and how can I set it up to run correctly?

     

    You can see the output best in the debug mode of the Alfred workflow. Click on the bug icon at the top right for it.

    Have you checked these steps https://github.com/deanishe/awgo/wiki/Catalina not sure if they are relevant for this step.

     

    Could you please update to the latest version as well. The command changed to .bitauto

  12. @stachmou That issue should be unrelated to the platform (the workflow itself is compiled for both intel and m1). You can check where the Bitwarden cli is located. I assume it's named bw, otherwise it has to be adjusted in the workflow settings (BW_EXEC variable name). Please have a look at the path configuration https://github.com/blacs30/bitwarden-alfred-workflow/#path-configuration, you can get the location of bw with e.g. which bw and then copy the path to the workflow PATH variable. As you might need node and other binaries in the PATH you could try to copy the complete content of the shell PATH variable (in the terminal run echo $PATH) into the workflow PATH variable.

  13. Update: 

    Version 2.3.0 is released. Get it from github https://github.com/blacs30/bitwarden-alfred-workflow/releases/tag/2.3.0

     

    After some months I am releasing this version which adds 2 features which were requested:

     

    - The auto lock service locks the Bitwarden workflow after every start and after a configurable time read more here

    - The auto sync service which syncs Bitwarden in the background multiple times a day with configurable times see more here

  14. 25 minutes ago, jim465 said:

    @blacs30 Hi there, thanks for the script. It was working great until the other day, when i tried to update the secrets. I don't seem to be able to log back in again properly. I get the follow ing error message:

     

    Error: dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.67.dylib
      Referenced from: /usr/local/bin/node
      Reason: image not found

     

    Can anyone tell me what I have done wrong and, more importantly, how to fix it 🙂

     

    @jim465

    This issue looks unrelated to the workflow itself but related to either the node or bitwarden-cli installation itself.

    How did you install bitwarden-cli, via brew or npm?  I assume that a simple bw command like `bw -v` will fail as well? Try reinstalling it.

  15. 7 hours ago, paulw said:

    Suggestion for the future—could you add an option to display details of an item in the vault? For example, I might want to view the contents of a note, or even copy and paste a portion of an item.

     

     

    Partly I would say it is implemented. Per default it shows "show more" with the modifier keys command + option (or alt). It shows every possible, used field for each item. any of this can be copied. just it's not currently possible to copy only a part of a field, e.g. a part of a note.
    Secure note content is hidden in the workflow and is treated like a password.

  16. 2 hours ago, Hoogo said:

    Hi,

    I would love to start using this workflow. I'm not a expert in reading code so I don't really understand what's happening under the hood. I just wanted to ask if it is secure to use this workflow and if there is any of my data (email, masterpassword) beeing send to the workflow developer or to any servers.

     

    Best regards

    Noah

     

    Good that you ask and not just "trust" or "hope". Little snitch is a great firewall which can show up all the hidden traffic going out from applications.

  17. 42 minutes ago, deanishe said:

     

    So, I've just gone through the source code.

     

    All the workflow does with your email & master password is pass them to the Bitwarden CLI client (it does save the email, but not the password). The only network connections the workflow itself makes are to fetch favicons and to check for updates.

     

    The workflow caches your Bitwarden data (for speed), but the data are encrypted on disk, the encryption key is stored in your Keychain, and the cached data are deleted when you lock Bitwarden.

     

    All in all, very well done. @blacs30 is very security aware. I would trust this workflow much more than the browser extension, which was written—at least in part—by idiots.

     

    Also, thanks for getting me to look at the source code. I am totally going to steal the trick of fetching favicons from DDG. Thanks @blacs30!

     

    Thank you @deanishe, was only my second golang project but with the Alfred go package provided by you it was fun, and the github interactions since then grew. 

    Currently there is one open improvement on github which makes sense to me: optional time based lock of the Bitwarden workflow.
    As said already, the encryption key is stored in Keychain and it stays there until manually "lock" or "logout" is called from the workflow (or manually deleted via Keychain) or it get's invalidated by another Bitwarden cli client login in the meantime.

    The locally cached data also doesn't contain any secrets (unless secrets are put into non secret fields like username or name of the secret).

  18. 2 hours ago, raultaboraz said:

    I use bwsetemail me@mail.com & hit ENTER and nothing happens...

     

    If Alfred is allowed to send notifications you should set a confirmation notification like this (screenshot 1)

     

    You can also double check the keychain if items have been created there. 

    Open the app "Keychain Access", search for "bitwarden", you should be able to see couple of entries, but at least the one for the email-address.

     

    Can you try to search for an item like "bw google", it could be that you also need to run "bwunlock", that is needed in case bitwarden cli unlock is run in the meantime. It is so that bitwarden then invalidates the previous generated session key.

     

    Thanks @deanishe taking part here as well, it's an honour ;) I hope to soon fully rewrite this workflow in go with help of your library.

     

    Screenshot 2020-05-29 at 13.03.31.png

    Screenshot 2020-05-29 at 13.03.59.png

  19. On 9/28/2019 at 11:51 PM, thomasSDK said:

    Hi blacs30,

     

    This is an amazing Workflow but im running into some issues getting it up and running and it would be great if you could help me out and if you can explain whats going wrong in the code as well that would be amazing (ive had a bit of a poke around but dont have much experience with Python).

     

    Im running version 1.2.4 and Alfred 4 with Script Editor and Alfred both added to the Accessibly permissions of Privacy and Security.

     

    When trying to Login the enter password popup shows but when I enter my password nothing happens, here is the log from the debug console (ive managed to login via the bitwarden-cli in the terminal btws)

     

     

     

     

    Also sorry to you @thomasSDK for my very very last reply. I will configure my notifications here on the forum.

     

    This error you showed looks heavily like this one https://stackoverflow.com/questions/53603246/strange-error-running-osascript-e-command-on-macos-mojave

  20. On 1/10/2020 at 5:55 PM, Al30 said:

    Hi @blacs30,

     

    I'm so excited to get this one working! Kudos for the work. It seems that I'm having some issues and wanted to put them out there in case someone is having a similar issue and for your information so that it can be resolved:

     

     

    I'm sorry not to have answered before @Al30 . I think I messed up my notifications here from the forum.

    Do you still need help? For the logs it looked like that the setting for 2fa mode might have been wrong. I would ask you to try to login via cli in the terminal. If the cli asks you to choose an 2fa auth method (which only happens if multiple 2fa ways are setup) then you need to configure the method otherwise it's 0.

×
×
  • Create New...