Commit Graph

61 Commits

Author SHA1 Message Date
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
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
Oscar Hinton 4ec06bbd1e
Add support for helpers in environment service (#353) 2021-07-23 22:46:32 +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 12b36557bd
Fix reference after NodeCryptoFunctionService moved to jslib-node (#329) 2021-06-18 07:12:00 -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 7a83b30490
update service deps and jslib (#308) 2021-05-26 07:42:59 +10:00
Matt Gibson e41514db2f
Update jslib (#286)
* Update jslib

* Fix jslib update items
2021-04-12 10:13:00 -05:00
Matt Gibson 1419b81ddc
Add new fileUploadService dependency (#267)
* Add new fileUploadService dependency

* Update jslib
2021-03-29 09:47:39 -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
Matt Gibson 0330641a14
Response option outputs only json on stdout (#197)
* Use logService for console logging

* jslib signature updates

* Use most specific import path

* Include new jslib dependency

* Update jslib

Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
2020-12-14 11:29:17 -06:00
Hinton 2afe4ecd61 Update jslib 2020-11-23 21:56:40 +01:00
Chad Scharf f0d4635c5f Add log service and pass to lowdb storage 2020-10-20 10:07:36 -04:00
Chad Scharf 4b9096273e
Update jslib and constructor fix (#164) 2020-09-15 10:59:46 -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
Chad Scharf 49f1fac3ed Added --trash to delete cmd, added restore cmd 2020-04-14 13:04:19 -04:00
Vincent Salucci 967c3e5b33 Update vaultTimeoutService init 2020-04-06 12:02:18 -05:00
Vincent Salucci 6916d68f37 Update jslib 31a2574 -> 28e3fff, update vault timeout service deps 2020-04-03 09:47:45 -05:00
Kyle Spearrin 60e8aa3518 dirname of execPath 2020-03-09 13:32:22 -04:00
Kyle Spearrin d91a24a8e9 try loading data.json from `./bw-data` 2020-03-09 12:06:38 -04:00
Kyle Spearrin ef602ff6a4
enforce policies on generate command (#115) 2020-03-03 16:29:10 -05:00
Kyle Spearrin 05a03acd3f update jslib and construct policy service 2020-01-28 22:37:44 -05:00
Kyle Spearrin 341421380f CLI user agent 2019-10-07 10:12:39 -04:00
Kyle Spearrin 44e0e4744b update jslib 2019-03-19 15:53:02 -04:00
Kyle Spearrin a3ba833f0d move shared CLI items to jslib 2019-03-15 22:34:59 -04:00
Kyle Spearrin 6aca111ce0 fix issue with ws module for jsdom 2019-02-07 22:17:22 -05:00
Kyle Spearrin cd5da2cc70 use jsdom lib for DOMParser 2019-02-07 16:56:36 -05:00
Kyle Spearrin c64fbda900 polyfill DomParser with xmldom package 2019-02-07 15:46:22 -05:00
Estelle Poulin 80bb03de91 support xdg environment vars (#46) 2019-01-14 15:33:14 -05:00
Kyle Spearrin 73c597f649 add `list items --url <url>` command. resolves #32 2018-10-13 22:27:33 -04:00
Kyle Spearrin 783e7fc834 dont await void methods 2018-10-04 12:05:41 -04:00
Kyle Spearrin 9f70c888a6 update with jslib changes 2018-08-20 17:10:18 -04:00
Kyle Spearrin 314cef78fd implement search service 2018-08-13 14:38:04 -04:00
Kyle Spearrin f988c77755 update for jslib importer service changes 2018-08-06 11:43:07 -04:00
Brandon Davis 47b5b9f950 feature/18-import (#19)
* fix #18

* Add locked check
2018-08-06 09:38:17 -04:00
Kyle Spearrin 9552ce4997 dev server urls 2018-07-30 12:01:24 -04:00
Kyle Spearrin 085b7c10fe api service to audit service 2018-07-07 23:52:06 -04:00
Kyle Spearrin 0643ca460c update jslib with export deps 2018-07-05 14:42:33 -04:00
Kyle Spearrin e78b2880e0 adjust deps on folder service 2018-06-25 15:03:57 -04:00
Kyle Spearrin 9a42197981 allow low db to cache 2018-06-05 14:44:51 -04:00
Kyle Spearrin a9e3d31b07 move lowdb to jslib 2018-05-31 09:08:54 -04:00
Kyle Spearrin 05535cc134 get exposed 2018-05-17 11:07:53 -04:00