Commit Graph

135 Commits

Author SHA1 Message Date
Thomas Rittson ff98f4ca6b
Fix error when using password generator not logged in (#481)
* Do not fetch password policy if not logged in

* Update deps
2022-02-14 09:29:44 -05:00
Thomas Rittson 220afb98c6
Update client for authService refactor (#448)
* Update for encrypted export support (to pass build only)
2022-02-07 17:31:36 -06:00
Matt Gibson 210e0502ca
Feature/put serve behind feature flag (#455)
* Add build-time feature flag capabilities

* Toggle `bw serve` command with `serve` flag

* Run linter and prettier
2022-01-28 08:29:04 -06:00
Matt Gibson 1b409653a2
Fix/bitwarden serve (#454)
* Handle null passedOptions

* Require authentication to use `bs serve`
2022-01-26 10:28:56 -06:00
Thomas Rittson 8b650666c5
Fix migration to Key Connector (#452)
* Move Key Connector check to subclass

* Move authService.logout call to main program

* Move Key Connector migration check to unlock command

* Use get/setConvertAccountRequired flag

* Move Key Connector convert to own command, set usesKeyConnector after conversion

* Remove KC conversion check from syncCommand, fix callback

* Make class service private

* Fix naming convention

* Update jslib and deps
2022-01-21 06:03:37 +10:00
Kyle Spearrin 922cd1dc54
serve command (#451) 2022-01-19 10:45:14 -05:00
Matt Gibson 3b1ccb409e
Fix/lowdb no cache (#443)
* Add jslib prettier commit to client ignore hashes

* Remove lowdb caching

* Fix state service remove being set to null

* Await in-memory key retrieval

* Fix key loading and unlock requests.

* Linter fixes

* linter fixes

* linter fixes
2022-01-13 11:03:19 -06:00
Thomas Rittson b962af303a
Fix always logging out instead of lock (#444) 2022-01-13 17:35:48 +10:00
Addison Beck 179f1dfe5d
[refactor(Account Switching)] Implement StateService (#424) 2021-12-28 15:38:51 -05:00
Oscar Hinton 910b4a24e6
Apply Prettier (#426) 2021-12-20 18:04:00 +01:00
Thomas Rittson 62a3ea5699
[Key Connector] QA fixes (#410)
* Fix locked vault message if using key connector

* Add OTP verification on export

* Finish support for OTP on export

* Delete unneeded subclass

* update deps

* Update jslib
2021-11-16 19:42:30 +10:00
Thomas Rittson 85f4f1e727
[Key Connector] Add support for key connector (#406)
Co-authored-by: Hinton <oscar@oscarhinton.com>
2021-11-09 19:00:16 +01:00
Luckymee 6ffc295be9
Implemented capitalize, and includeNumber (#369)
* Implemented capitalize, and includeNumber - generate passphrase.

Co-authored-by: davidrenzella <david.renzella@gmail.com>

* Capitalize shorthand flag

* Update package.json

* Remove accidental space

Co-authored-by: davidrenzella <david.renzella@gmail.com>
Co-authored-by: govjmal <govjmal@gmail.com>
2021-09-29 11:09:32 -04:00
Vincent Salucci 1a1ba6ed3b
[Reset Password v1] Update Temp Password (#356)
* [Reset Password v1] Update Temp Password

* updated jslib

* fetched email before checking for reset master password

Co-authored-by: addison <addisonbeck1@gmail.com>
2021-08-10 13:35:41 -04:00
Matt Gibson 230e00e423
Fix unlock env and passwordfile (#352)
* Handle null options

* Pass in ConsoleLogService dependency
2021-07-20 09:54:04 -05:00
Philip Kaiser 47308ef240
`--passwordenv` doesn't work for for unlock (#347)
* - Add passwordenv parameter to unlock command
- Add passwordfile parameter to unlock command
- Adapt help message

* Remove newline

* Add warning if passwordenv var not found

* Appease the linter

* Refactor

* Undo last commit
2021-07-02 15:04:07 -05:00
Matt Gibson 10643be8bb
Use `getKey` to actually retrieve key. (#332)
`hasKey` just validates it's available
2021-06-21 12:26:45 -05:00
Oscar Hinton 477066118e
Add jslib as a "real" dependency (#321)
* Split jslib

* Bump jslib

* Bump jslib, replace alias with tsconfig-paths-webpack-plugin
2021-06-07 19:25:55 +02:00
Thomas Rittson 13d3109f2b
Add --cleanexit option (#309)
* add --cleanexit option

* bump jslib
2021-05-26 21:16:25 +10:00
Oscar Hinton 9c55d78ffc
Update dependencies (#292)
* Update dependencies

* Remove types which are no longer needed

* Bump jslib

* Revert pkg to 4.5.1 since 5.0.0 does not compile on linux.

* Bump pkg-fetch in build pipeline
2021-04-23 21:04:11 +02:00
Matt Gibson e41514db2f
Update jslib (#286)
* Update jslib

* Fix jslib update items
2021-04-12 10:13:00 -05:00
Matt Gibson fcd0c529ca
Direct download for send (#243)
* Remove Get file capability

This needs to be removed because the SendFileResponse no longer contains
a url to download the file from. Instead, a GetDownloadLink method
must be used. That method increments access count, which is not
desirable for the owner of the Send. The cleanest approach is to remove
the capability, which also matches Web client's behavior

* jslib updates

* Use GetDownloadData method to receive download Url

* Update jslib
2021-03-02 10:05:20 -06:00
Matt Gibson 3b91a2c72b
Ban single paren arrow functions (#226)
* Fix glob processing in npm. Ban single param parens

* Match typescript linter rules
2021-02-03 22:51:59 -06:00
Matt Gibson 57f7cf607a
Add send to cli (#222)
* Add list all sends and filter by search term

* Add get send templates

* Add AccessUrl to send responses

* Add Send to Get command

* Add missing command options to login

These options are already coded to work in the command, but commander
did not know about the options.

* Upgrade Commander to 7.0.0

This is needed to enable the subcommand chaining required by Send.

This commit also adds get send and send receive functionality. get send
will be moved to send get along with send list and any other send commands.

* Use api url for send access url

* Move send commands to send subcommands

* Use webvault access url everywhere

Production instances all have api url located at `baseUrl/api`.
Receive command will parse the webvault url and alter it to an api url.

* Move create and receive commands to send directory

* Separate program concerns

program holds authentication/general program concerns
vault.program holds commands related to the vault
send.program holds commands related to Bitwarden Send

* Fix up imports and lint items

* Add edit command

* Use browser-hrtime

* Add send examples to help text

* Clean up receive help text

* correct help text

* Add delete command

* Code review Cleanup

* Scheme on send receive help text

* PR review items

Move buffer to array buffer to jslib
delete with server
some formatting fixes

* Add remove password command

This is the simplest way to enable removing passwords without
resorting to weird type parsing of piped in Send JSONs in edit

* Default hidden to false like web

* Do not allow password updates that aren't strings or are empty

* Delete appveyor.yml.flagged-for-delete

* Correctly order imports and include tslint rule

* fix npm globbing problem

https://stackoverflow.com/a/34594501
globs work differently in package.json. Encasing the globs in
single quotes expands them in shell rather than in npm

* Remove double slash in path

* Trigger github rebuild
2021-02-03 11:44:33 -06:00
Paul Lettington 3e9d0b78dd
Clarify help text for --raw option to bw export (#218) 2021-01-21 11:36:07 -05:00
Kyle Spearrin 30b7b93fab
updates for encrypted export and import (#198)
* react to changes for encrypted import

* support encrypted json export

* default back to csv
2020-12-08 12:35:37 -05:00
Addison Beck 2c29df7a86 changed command from login --apiKey to login --apikey 2020-11-10 12:21:35 -05:00
Addison Beck 421de80daf Added --apiKey option to the login command 2020-11-01 14:57:33 -05:00
Kyle Spearrin 7733b95a71 update jslib 2020-09-23 11:59:30 -04:00
Andreas Schneider f2530c133e
Export to stdout (#152)
* describe file-saving and add helper to write to stdout if appropriate

* allow writing attachments to stdout

* allow writing export to stdout

* add help texts for export and get
2020-08-25 14:24:43 -04:00
Kyle Spearrin bd0f28b3be
SSO login (#154)
* support sso login

* update jslib

* set clientid in base login command
2020-08-03 12:30:32 -04:00
Kyle Spearrin 72c56ca506
updates to status command and add hidePasswords (#146)
* a few updates to the recent status addition

* add hidePasswords functionality
2020-06-17 11:01:34 -04:00
Jarimatti Valkonen 62c7c30cb4
Add status command (#145)
* Show vault status.

The status is shown as 'unauthenticated', 'locked', or 'unlocked'.

* Add more status command fields.

Added `serverUrl`, `lastSync`, `userEmail`, and `userId`.

* Add status help text.
2020-06-16 20:43:30 -04:00
Kyle Spearrin d6c5d0ec1c Formatting and lint fixes 2020-05-26 09:34:44 -04:00
Munif Tanjim 723ff201f6
add completion generation for zsh (#137) 2020-05-26 09:17:41 -04:00
Chad Scharf 5dd9963618 [Soft Delete] soft-delete by default 2020-04-14 14:32:43 -04:00
Chad Scharf 49f1fac3ed Added --trash to delete cmd, added restore cmd 2020-04-14 13:04:19 -04:00
Vincent Salucci 6916d68f37 Update jslib 31a2574 -> 28e3fff, update vault timeout service deps 2020-04-03 09:47:45 -05:00
Kyle Spearrin f5426469bb only block interaction if env var set
resolves #118
2020-03-12 15:37:44 -04:00
Kyle Spearrin e7450d27e4 prompt for unlock if can interact 2019-10-21 16:04:51 -04:00
Kyle Spearrin aae783333d show example 2019-10-10 21:25:47 -04:00
Kyle Spearrin 492bc32aa3 get config value when value not provided 2019-10-10 21:23:56 -04:00
Kyle Spearrin 93c2ce2582 allow org exports 2019-10-07 11:01:30 -04:00
Kyle Spearrin 99c4291ee7 confirm org members command 2019-10-07 10:42:02 -04:00
Kyle Spearrin e781de9f34 list org-members command 2019-10-07 09:58:19 -04:00
Kyle Spearrin 1de6c2884b org collection list command 2019-10-01 11:29:25 -04:00
Kyle Spearrin 04df76e83f org collection edit command 2019-10-01 11:16:24 -04:00
Kyle Spearrin abcd43b4ba delete org collection command 2019-10-01 11:04:15 -04:00
Kyle Spearrin 77d24f6b8a get org collection 2019-09-25 17:11:48 -04:00
Kyle Spearrin d2ef504b40 org collection create and get template 2019-09-25 16:08:59 -04:00