Kyle Spearrin
2295cd3266
parse incoming JSON date strings as Date objects ( #500 )
...
* parse incoming JSON date strings as Date objects
* update create command too
2022-03-04 09:47:46 -05:00
Oscar Hinton
b4555039d8
Add eslint ( #496 )
2022-03-03 12:24:41 -05:00
Daniel James Smith
caf6a1173b
Add importing of 1passwords 1pux files ( #440 )
...
* Pull in jslib
* Install jszip
* Add method in utils to unzip and extract 1pux file
* Add importing/extracting of 1pux files to import command
* Update jslib
* Update package-lock.json
2022-03-03 15:32:49 +01:00
Kyle Spearrin
ed33d77b7e
Serve command fixes ( #492 )
...
* change to koa to support async/await
* get rid of session header
* error is unlocked for certain commands
* fix lint error
* use "object" routes
* revert change to vs code launch
2022-02-25 17:35:27 -05:00
Thomas Rittson
1af0021af3
Update jslib ( #493 )
...
* Update jslib
* Add i18n error message
* Update deps
2022-02-24 09:35:18 -05:00
Matt Gibson
323c3ee04a
Feature/password protected export ( #446 )
...
* Update jslib
* Bumped version to 1.20.0 (#421 )
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 3e4aa8e476
)
* password protected export
* Run Prettier
* Add importer to list of known file types
* Improve launch.json settings
* Turn on import from password protected file
* Run prettier
* Fix webpack source map path change
* Update getPassword helper to use new options class
* Prettier
* Add client type
* Remove master password requirement for export
Alter password optional argument to indicating the file should be password protected rather than account protected
* update jslib
* Handle passwordProtected automagically
* Remove passwordproteted type from import command
* Update src/utils.ts
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
* Update src/vault.program.ts
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
* Use new util method
* remove password protected format
* Update jslib
* Clarify export command
* Run prettier
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matt Gibson <gibson.matt10@gmail.com>
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
2022-02-23 15:47:32 -06:00
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
Matt Gibson
ee664059d2
Fix/lock lowdb file ( #470 )
...
* Lock data.json while running
* Await floating promises
* Increase retry frequency and attempt count for lock file
* tweak lock retry times
2022-02-10 10:24:41 -06:00
Addison Beck
2ae2fdfd14
bump jslib ( #471 )
2022-02-09 17:47:00 -05:00
Matt Gibson
e515ec2625
Return response success from create attachmnt ( #469 )
2022-02-09 10:58:53 -06:00
Oscar Hinton
6b056d4f80
Client & Version headers ( #468 )
2022-02-08 15:29:22 +01: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
c3f9e1053b
Add deleted date to items ( #465 )
2022-02-04 16:50:59 -06:00
Addison Beck
af9b8b94f8
Update jslib ( #462 )
2022-02-03 14:08:45 -05:00
Addison Beck
3718f35efd
[chore] Update jslib ( #459 )
2022-01-31 18:00:19 -05:00
Addison Beck
5731e1e316
[chore] Update jslib ( #457 )
2022-01-28 10:09:24 -05: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
Matt Gibson
4345a093b7
Fix cli user agent ( #415 )
...
* Fix cli user agent
* update jslib
2021-11-23 15:13:29 -06: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
Matt Gibson
739dbffd2b
Update jslib ( #398 )
...
* Update jslib
* Add new service dependency
* update jslib
2021-10-28 10:17:42 -05:00
Oscar Hinton
fe0f4120ba
Remove empty catch blocks and remove allow-empty-catch tslint rule ( #393 )
2021-10-20 22:41:33 +02:00
Vincent Salucci
325e9ded0d
[Reset Password] Refactor to use new auth result ( #380 )
...
* [Reset Password] Refactor to use new auth result
* Update jslib
* Update class to fix build
2021-10-12 16:51:14 -05:00
Matt Gibson
12ead16167
Use split collections permisions ( #382 )
2021-10-05 11:13:03 -05: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
Oscar Hinton
fe38848cf7
Use explicit import paths ( #372 )
2021-09-21 19:42:36 +02:00
Oscar Hinton
8690f51e2f
Disable Private Vault Export Policy ( #371 )
2021-09-15 15:57:43 +02:00
Matt Gibson
49b6b717c1
Pass in apiKey login callback ( #361 )
...
* Pass in apiKey login callback
* Update jslib
2021-08-13 09:18:49 -05: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
Oscar Hinton
4ec06bbd1e
Add support for helpers in environment service ( #353 )
2021-07-23 22:46:32 +02: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
Oscar Hinton
10b4efcb0d
Set HashPurpose.LocalAuthorization on export password check ( #339 )
2021-06-30 20:27:47 +02:00
Matt Gibson
65160f3bf4
Fix cli lock and logout ( #334 )
...
* Ensure order of operations
* Key removal is necessary to properly lock
* Update jslib
2021-06-22 12:37:30 -05:00
Matt Gibson
58fb7958fe
Redefine cipher "share" to "move" ( #330 )
...
* Redefine cipher "share" to "move"
* PR fixes
2021-06-21 19:26:28 -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
Matt Gibson
62b5a05c40
Use cryptoservice to compare key to local keyhash ( #331 )
...
* Use cryptoservice to compare key to local keyhash
* Fix bugs
Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
2021-06-21 12:23:30 -05:00
Matt Gibson
12b36557bd
Fix reference after NodeCryptoFunctionService moved to jslib-node ( #329 )
2021-06-18 07:12:00 -05:00
Matt Gibson
17ab740914
Allow import to organization ( #325 )
...
* Allow import to organization vaults
* Use organization-aware Importer
2021-06-16 08:50:29 -05:00
Matt Gibson
5a377f8ef9
Implement `has` for storage services ( #328 )
...
* Implement `has` for storage services
* Update jslib
2021-06-15 13:41:17 -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
a5a3baea9c
Use same export filename format as other clients ( #312 )
2021-05-28 06:47:39 +10:00
Thomas Rittson
13d3109f2b
Add --cleanexit option ( #309 )
...
* add --cleanexit option
* bump jslib
2021-05-26 21:16:25 +10:00