Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Can't login with API key #181

Open
LeonChenWenJia opened this issue Nov 3, 2023 · 0 comments
Open

Can't login with API key #181

LeonChenWenJia opened this issue Nov 3, 2023 · 0 comments

Comments

@LeonChenWenJia
Copy link

LeonChenWenJia commented Nov 3, 2023

workflow version --3.0.4
bw version --2023.10.0

Installed using homebrew.
My installation was working previously but now I can't login using APIkey. Debug log:

[16:48:11.009] Bitwarden v2[Script Filter] Processing complete [16:48:11.018] Bitwarden v2[Script Filter] Passing output '' to Conditional [16:48:11.019] Bitwarden v2[Conditional] Processing complete [16:48:11.020] Bitwarden v2[Conditional] Passing output '' to Hide Alfred [16:48:11.020] Bitwarden v2[Hide Alfred] Processing complete [16:48:11.021] Bitwarden v2[Hide Alfred] Passing output '' to Run Script [16:48:18.425] STDERR: Bitwarden v2[Run Script] 16:48:11 utils.go:172: [DEBUG] bwDataPath is: /Users/leon/Library/Application Support/Bitwarden CLI/data.json 16:48:11 utils.go:172: [DEBUG] BwData config is: {path:/Users/leon/Library/Application Support/Bitwarden CLI/data.json InstalledVersion:2023.10.0 UserEmail:[email protected] UserId:4b0f8d7d-b7bd-4673-926c-acdd00d16cdd ActiveUserId:4b0f8d7d-b7bd-4673-926c-acdd00d16cdd ProtectedKey: EncKey:2.eGoe6y1p7LieLqugImi9fg==|swxdmUVNkZOpEBlLiW0bvxCH49mUqmkaG38oaabQpeeXhsFKtzBklxiMoSbY11/E45cf78FmlhpRw5Y4+Ui/MjDKVkHMC+VpF2LQFhQW4Qs=|TQOHgyofqkAH1K+l4Vxfgovym4Xs/dMHvQgkFsIFcr4= Kdf:0 KdfIterations:100000 Global:{InstalledVersion:2023.10.0} Profile:{EverBeenUnlocked:false LastSync:2023-11-03T08:39:42.653Z KdfIterations:100000 KdfType:0 Email:[email protected] UserId:xxxxxxxxxxxxxxxxxxxxxx} Keys:{ApiKeyClientSecret:xxxxxxxxxxxxxx CryptoSymmetricKey:{Encrypted:2.eGoe6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jdmMmj6lVhqq4J56q5ei98Ng5e2V1iZVg0OgOKjpN6ql24YbsmqfzE1lRVGQW2oMS033rxxcYGLuD7yjNOR1LlqNxHeKaHR_CZpw4STFL0RlgDTMSEKyIlrteyZda3CVYIL6ih8vqvfRfh1vrH4BgH9WhVNKezobuX1p64fVdIaR7xPwevg6S_Nph6E5g} Unused:map[]} 🍺 16:48:11 workflow.go:328: -------- Bitwarden v2/3.0.4 (AwGo/0.27.1) -------- 16:48:11 main.go:162: &main.options{Search:false, Config:false, SetConfigs:false, Auth:false, OnOffConfigs:false, AuthConfig:false, Lock:false, Icons:false, Folder:false, Unlock:false, Login:true, Logout:false, Sync:false, Open:false, GetItem:false, Force:false, Totp:false, Last:false, Background:false, Id:"", Query:"", Attachment:"", Output:""} 16:48:11 main.go:164: args=[]string{"-login"} => []string{} 16:48:11 main.go:165: (main.config) { AutoFetchIconCacheAge: (int) 1440, AutoFetchIconMaxCacheAge: (time.Duration) 24h0m0s, BwconfKeyword: (string) (len=8) "bwconfig", BwauthKeyword: (string) (len=6) "bwauth", BwKeyword: (string) (len=2) "bw", BwfKeyword: (string) (len=3) "bwf", BwExec: (string) (len=2) "bw", BwDataPath: (string) "", Debug: (bool) true, Email: (string) (len=25) "[email protected]", EmailMaxWait: (int) 15, 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", Mod5: (string) (len=9) "cmd,shift", Mod5Action: (string) (len=5) "webui", NoModAction: (string) (len=13) "password,card", OpenLoginUrl: (bool) true, OutputFolder: (string) (len=22) "/Users/leon/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) true, SfaMode: (int) 4, SkipTypes: (string) "", TitleWithUser: (bool) true, TitleWithUrls: (bool) false, UseApikey: (bool) true, WebUiURL: (string) (len=27) "https://vault.bitwarden.com" } 16:48:11 utils.go:172: [DEBUG] bw login command is bw login [email protected] --passwordenv PASS 16:48:11 bitwarden.go:474: Use apikey true 16:48:18 workflow.go:405: ------------------ 7.398809833s ------------------ [16:48:18.439] Bitwarden v2[Run Script] Processing complete [16:48:18.440] Bitwarden v2[Run Script] Passing output 'APIKEY. ' to Conditional [16:48:18.440] Bitwarden v2[Conditional] Processing complete [16:48:18.441] Bitwarden v2[Conditional] Passing output 'APIKEY. ' to Post Notification [16:48:18.442] Bitwarden v2[Post Notification] Processing complete [16:48:18.442] Bitwarden v2[Post Notification] Passing output 'APIKEY. ' to Run Script [16:48:23.344] ERROR: Bitwarden v2[Run Script] 16:48:18 utils.go:172: [DEBUG] bwDataPath is: /Users/leon/Library/Application Support/Bitwarden CLI/data.json 16:48:18 utils.go:172: [DEBUG] BwData config is: {path:/Users/leon/Library/Application Support/Bitwarden CLI/data.json InstalledVersion:1.17.1 UserEmail:[email protected] UserId:4b0f8d7d-b7bd-4673-926c-acdd00d16cdd ActiveUserId:4b0f8d7d-b7bd-4673-926c-acdd00d16cdd ProtectedKey:%!s(<nil>) EncKey:2.eGoe6y1p7LieLqugImi9fg==|swxdmUVNkZOpEBlLiW0bvxCH49mUqmkaG38oaabQpeeXhsFKtzBklxiMoSbY11/E45cf78FmlhpRw5Y4+Ui/MjDKVkHMC+VpF2LQFhQW4Qs=|TQOHgyofqkAH1K+l4Vxfgovym4Xs/dMHvQgkFsIFcr4= Kdf:0 KdfIterations:100000 Global:{InstalledVersion:} Profile:{EverBeenUnlocked:false LastSync: KdfIterations:0 KdfType:0 Email: UserId:} Keys:{ApiKeyClientSecret: CryptoSymmetricKey:{Encrypted:} PrivateKey:{Encrypted:}} Tokens:{AccessToken:} Unused:map[]} 🍺 16:48:18 workflow.go:328: -------- Bitwarden v2/3.0.4 (AwGo/0.27.1) -------- 16:48:18 main.go:162: &main.options{Search:false, Config:false, SetConfigs:false, Auth:false, OnOffConfigs:false, AuthConfig:false, Lock:false, Icons:false, Folder:false, Unlock:true, Login:false, Logout:false, Sync:false, Open:false, GetItem:false, Force:false, Totp:false, Last:false, Background:false, Id:"", Query:"", Attachment:"", Output:""} 16:48:18 main.go:164: args=[]string{"-unlock"} => []string{} 16:48:18 main.go:165: (main.config) { AutoFetchIconCacheAge: (int) 1440, AutoFetchIconMaxCacheAge: (time.Duration) 24h0m0s, BwconfKeyword: (string) (len=8) "bwconfig", BwauthKeyword: (string) (len=6) "bwauth", BwKeyword: (string) (len=2) "bw", BwfKeyword: (string) (len=3) "bwf", BwExec: (string) (len=2) "bw", BwDataPath: (string) "", Debug: (bool) true, Email: (string) (len=25) "[email protected]", EmailMaxWait: (int) 15, 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", Mod5: (string) (len=9) "cmd,shift", Mod5Action: (string) (len=5) "webui", NoModAction: (string) (len=13) "password,card", OpenLoginUrl: (bool) true, OutputFolder: (string) (len=22) "/Users/leon/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) true, SfaMode: (int) 4, SkipTypes: (string) "", TitleWithUser: (bool) true, TitleWithUrls: (bool) false, UseApikey: (bool) true, WebUiURL: (string) (len=27) "https://vault.bitwarden.com" } 16:48:22 utils.go:172: [DEBUG] bw unlock command is bw unlock --raw --passwordenv PASS 16:48:23 utils.go:32: [ERROR] ==> [error: unknown option '--passwordenv'] 16:48:23 utils.go:44: [ERROR] ==> Exit code 1. Unlocking Bitwarden failed. Err: error: unknown option '--passwordenv' 16:48:23 workflow.go:376: [ERROR] Unlocking Bitwarden failed. Error: error: unknown option '--passwordenv' 16:48:23 workflow.go:379: Get help at https://github.com/blacs30/bitwarden-alfred-workflow/issues 16:48:23 workflow.go:402: ------------------- 4.8366385s ------------------- [16:48:23.356] Bitwarden v2[Run Script] Processing complete [16:48:23.357] Bitwarden v2[Run Script] Passing output 'Unlocking Bitwarden failed. Error: error: unknown option '--passwordenv'' to Post Notification

@LeonChenWenJia LeonChenWenJia changed the title Can't login either with API key or password Can't login either with API key Nov 3, 2023
@LeonChenWenJia LeonChenWenJia changed the title Can't login either with API key Can't login with API key Nov 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant