1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-14 02:08:50 +02:00
Commit Graph

262 Commits

Author SHA1 Message Date
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
Thomas Rittson
7a83b30490
update service deps and jslib (#308) 2021-05-26 07:42:59 +10:00
Oscar Hinton
1b22c91f35
Bump node to 14 (#296)
* Bump node to 14

* Change engine node to ~14. Fix linting
2021-05-14 14:30:26 +02:00
Matt Gibson
0cbcdd6948
Specify type of send from templateType (#304)
* Specify type of send from templateType

* Default to Text type send
2021-05-13 14:57:08 -05:00
Matt Gibson
1ed637e123
Replace cipher results with filtered results (#301) 2021-05-12 08:09:34 -05:00
Hannu Hartikainen
80f34d5de5
Add bw get notes <id> command (#255)
Rationale: the notes object is a freeform plain-text field that's
prominently displayed in Web Vault. It is also useful for the CLI users
as discussed before in issues #81 and #196. I have some use cases
planned myself.

I was rather surprised this wasn't supported already, but the
implementation is simple and cannot really break any existing
functionality so here it is.
2021-05-11 21:19:47 -05:00
Sang
50ee3c0f07
fix: fullObject option for send create (#285) 2021-05-11 14:56:38 -05:00
Me
5edd0a2c76
Add maxAccessCount to send command (#298) 2021-05-11 14:55:04 -05:00
Matt Gibson
63f522026b
Get Attachment Download url from server (#295) 2021-04-29 09:49:04 -05: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
019966f6d5
Specify api url in Send file download request (#291) 2021-04-22 07:45:06 -05:00
Matt Gibson
21ca15fb84
update jslib (#293)
* update jslib

* update jslib
2021-04-21 14:24:59 -05:00
Matt Gibson
754dfe9d80
Use Get command for final return value of edit (#290) 2021-04-20 14:55:04 -05:00
Matt Gibson
6d46dc4b87
If error is of unkown type, create and error response from it. (#289)
* If error is of unkown type, create and error response from it.

* Update src/commands/send/receive.command.ts

simplify error handling

Co-authored-by: Oscar Hinton <oscar@oscarhinton.com>

Co-authored-by: Oscar Hinton <oscar@oscarhinton.com>
2021-04-15 08:28:31 -05:00
Matt Gibson
475efc4262
Update jslib (#288)
* Update jslib

* Convert NodeSecureStorage CipherArrayBuffer to string
2021-04-14 11:44:57 -05:00
Matt Gibson
8288bef567
Add required argument to output option (#287) 2021-04-14 11:09:47 -05:00
Matt Gibson
e41514db2f
Update jslib (#286)
* Update jslib

* Fix jslib update items
2021-04-12 10:13:00 -05:00
Thomas Rittson
7001d73686
Add hideEmail to sendResponse model and template (#273) 2021-04-02 06:42:14 +10: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
73f358a09d
Add api parsing special case for send.bitwarden.com (#258) 2021-03-16 14:19:51 -05:00
libertylocked
f181af4d76
Fix cannot find module sendAccessResponse (#253) 2021-03-12 13:57:29 -05:00
Matt Gibson
976be0fe67
Use send.bitwarden.com (#251)
* Use send.bitwarden.com

still need compatibiltiy with /#/send/id/key, but adding on
compability with #id/key

* Fix create links pointing to vault with wrong hash

* Fix Url
2021-03-11 10:39:31 -06:00
Matt Gibson
1e1677695c
Set time ms rather than hours (#250) 2021-03-10 09:51:50 -06: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
e77e1c94e8
Simplify send templates (#237)
* Simplify Send templates

* Fix internal template reference

* No trailing whitespace
2021-02-26 12:47:11 -06:00
Matt Gibson
0a34bdb8cf
Limit export read to current user (#230) 2021-02-10 10:47:59 -06:00
Matt Gibson
5a8de9be49
Match linter rules (#229) 2021-02-08 14:11:58 -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
Ben Mezger (seds)
116d7a4062
Fix: don't check filename by index when listing attachments (#224)
* don't check filename by index

* Fix: Filter by exact matches
2021-02-03 12:06:39 -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