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

1164 Commits

Author SHA1 Message Date
Matt Gibson
09c444ddd4
Add send to cli (#253)
* Upgrade commander to 7.0.0

* Add url to Api call

This is needed to allow access to sends that are available from a
different Bitwarden server than configured for the CLI

* Allow upload of send files from CLI

* Allow send search by accessId

* Utils methods used in Send CLI implementation

* Revert adding string type to encrypted file data

* linter fixes

* Add Buffer to ArrayBuffer used in CLI send implementation
2021-01-29 15:08:52 -06:00
Chad Scharf
06239aea2d
update package https-proxy-agent (#246)
* update package http-proxy-agent

* Update syntax appropriately

* Explicitly add utils package to fix broken tests

* Revert "Explicitly add utils package to fix broken tests"

This reverts commit 2cf03fdcbae89e55124c7e36201238520434f8cc.

* Import util in spec to make sure it gets bundled

* Revert "Import util in spec to make sure it gets bundled"

This reverts commit 79264cdab0ef37af855d64a6dc3ef574575309d2.

* Add alias to ensure util module resolves in tests

Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
2021-01-27 20:08:56 -05:00
Oscar Hinton
d1c46e6bdc
Update electron to 11.1.1 (#247) 2021-01-26 22:49:47 +01:00
Addison Beck
9ddec9baf8
Lunr search bug (#251)
* changed hrtime library

* changed import style
2021-01-25 15:03:28 -05:00
Matt Gibson
e1f1d7e702
Enable search for sends (#249) 2021-01-22 19:54:22 -06:00
Addison Beck
68bd93e45b
added Send sync notification support (#250) 2021-01-22 16:52:08 -05:00
Addison Beck
6ac6df75d7
Implemented Custom role and permissions (#237)
* Implemented Custom role and permissions

* converted Permissions interface into a class

* formatting fix
2021-01-11 17:01:39 -05:00
Oscar Hinton
8d161d9245
Improve system.service biometrics condition (#244) 2021-01-11 19:12:40 +01:00
Matt Gibson
3ac42f2f44
Remove unused toData methods (#245) 2021-01-11 10:51:23 -06:00
Matt Gibson
cea09a22e5
Update revision date upon cipher restore (#243)
* Update revision date upon cipher restore

* Receive and use returned datetimes from restore
2021-01-08 08:53:41 -06:00
Kyle Spearrin
afa01f67f4
send removePasswordWithServer and model updates (#242) 2020-12-30 16:23:52 -05:00
Matt Gibson
1420082348
Do not export trashed items (#241)
* Do not export trashed items

* Test Item exporting

Does not test organization export. Export's use of apiService is not
very testable. We will either need a testApiService or to refactor
apiService to make mocking easier.

* Linter fixes
2020-12-30 15:08:02 -06:00
Vincent Salucci
48144a7eae
Fixed UI bug with cloning item when personal ownership is not allowed (#240) 2020-12-29 15:42:11 -06:00
Kyle Spearrin
91c61aea58
fix org getter on import and export warning dialog (#238) 2020-12-22 16:14:22 -05:00
Oscar Hinton
573eea66ee
Add support for Emergency Access (#204)
* Add support for Emergency Access

* Resolve review comments
2020-12-22 10:53:48 -05:00
Chad Scharf
12321e53b9
fix lint error, missing semicolon; (#236) 2020-12-21 14:24:04 -05:00
Oscar Hinton
1742228715
Make fingerprint optional for browser integration (#234)
* Make fingerprint optional for browser integration

* Force focus on biometrics

* Add dependency
2020-12-21 13:26:16 -05:00
Matt Gibson
acdbc22953
Force update of tray menu if on linux (#233) 2020-12-18 09:20:59 -06:00
Oscar Hinton
f9042408f4
Prevent reloading browser extension when using biometric (#230) 2020-12-16 16:07:15 -05:00
Matt Gibson
697e755c0f
Add missing event type from server (#231) 2020-12-16 15:04:05 -06:00
Chad Scharf
ceb78d054c
Linter build fix (#228)
Added comments to empty function block for CLI (doesn't have a "system theme" like other clients) to make linter happy.
2020-12-15 19:16:22 -05:00
Matt Gibson
75ca9f9c13
Move share button to view page (#229)
It is not possible to edit and share at the same time. Browser extension
currently utilizes this layout and it is confusing. This change is in
conjunction with altering that UI.
2020-12-15 17:49:51 -06:00
Sorin Davidoi
58f5369adc
feat(platform-utils): Get and react to changes to the system theme (#161)
These changes will allow the WebExtension (and later the desktop application) to respect the system theme.

I've added the Electron implementation until I realized that the required API [has been implemented but not released yet](https://www.electronjs.org/docs/api/native-theme/history). Let me know if you I should remove the code.

Part of https://github.com/bitwarden/browser/issues/1256.

https://www.electronjs.org/docs/api/native-theme

Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com>
2020-12-15 17:22:24 -05:00
Cedric Wille
f7d8887304
Add verification for password hint - the hint should not equal the password for security reasons (#194) 2020-12-15 16:04:48 -05:00
Oscar Hinton
d7b5f0a26b
Avoid destroying the tray icon in linux (#227) 2020-12-15 15:26:51 -05:00
Matt Gibson
cc801ce0d7
Has Totp method will be used to enable quick copy (#225) 2020-12-15 10:02:54 -06:00
Matt Gibson
2c414ce27a
Use log service for console messages (#221)
* Use logService for console messages

* Implement a base ConsoleLog service

Use this class as a default for other services that would like to output
to console. This service is overriden in CLI and Desktop to use CLI's
consoleLogService and electronLogService, respectively.

* Use browser-process-hrtime for timing

* test LogService implementations

* Ignore default import of hrtime

* Clean up imports. Require ConsoleLog injection

Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
2020-12-11 10:44:57 -06:00
Oscar Hinton
63fe38b3f4
Fix dock icon not working when minimized to menu bar, fix window listeners not working after closing the main window (#223) 2020-12-11 09:46:20 -05:00
Matt Gibson
ecf1edfb3e
Specify to 2fa we're coming from sso (#218)
This will allow for closing of 2fa window to optionally alter behavior
for 2fa logins

Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
2020-12-09 15:30:29 -06:00
Matt Gibson
72bf18f369
Fix 1password importer (#222)
* Change cipher type based on csv type header

* Test identity and credit card import

* Do not use node 'fs' module

Karma is being used for automated tests so node modules are not available

* WIP: mac and windows 1password importer split

Need to improve windows field identification to limit secret data
exposure and improve user experience

* Hide fields with likely secret values

Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
2020-12-08 11:29:57 -06:00
Vincent Salucci
2d62e10d98
[Policy] Personal Ownership (#213)
* Initial commit of personal ownership enforcement

* Updated policy type enum

* Sync'd eventType for Policy_Updated with server enum value

* Added policyId to eventResponse model

* Removed explicit typing
2020-12-08 10:10:15 -06:00
Kyle Spearrin
dcbd09e736
encrypted import for bitwarden json (#220) 2020-12-04 21:05:11 -05:00
Matt Gibson
2b8c2c2b3e
Revert "Use logService for console messages (#214)" (#219)
This reverts commit 0fed528b6f.
2020-12-04 13:58:32 -06:00
Matt Gibson
0fed528b6f
Use logService for console messages (#214)
* Use logService for console messages

* linter autofixes

* Use full import path

* Implement a base ConsoleLog service

Use this class as a default for other services that would like to output
to console. This service is overriden in CLI and Desktop to use CLI's
consoleLogService and electronLogService, respectively.

* linter fixes

Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
2020-12-04 12:38:26 -06:00
Matt Gibson
6fb0646481
Fix 1password importer (#217)
* Fix import of 1password csv

* 1password is using '\' as a quote escape character.

* 1password's csv headers are sometimes capitalized. We want to identify
them case insensitively

* Change cipher type based on csv type header

* Translate 1password data to correct fields

* Test identity and credit card import

* linter fixes

* Do not use node 'fs' module

Karma is being used for automated tests so node modules are not available

Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
2020-12-04 12:29:31 -06:00
Oscar Hinton
c9df039fa9
Desktop fit & finish (#212)
* Add context menu on right click to mac

* Add hide dock setting

* Change "hide dock" to "always show dock"

* Add support on mac for minimize to menu bar on close, minimize or start

* Add "openAtLogin" to ElectronConstants

* Add "restoreFromTray" to TrayMainService
2020-12-04 12:21:34 -05:00
Addison Beck
0565d6f667
Implemented tax collection for subscriptions (#215) 2020-12-04 12:05:31 -05:00
Kyle Spearrin
93a3053f54
support for encrypted json export (#216)
* support for encrypted json export

* adjust filename prefix for encrypted formats

* flip if logic

* remove format param from encrypted export

* encryptedFormat getter
2020-12-03 15:20:38 -05:00
Chad Scharf
abb54f0073
Add normalized state compare for CLI (#211) 2020-11-23 16:45:09 -05:00
Chad Scharf
ea6fd5ac38
Update SSO component to parse state for comparison (#210)
* Update sso component to parse state for comparison

* No more truthy or dare

* fix lint errors for ===
2020-11-23 16:12:28 -05:00
Chad Scharf
0a73b6fca8
Fix lint error (#209) 2020-11-23 12:21:45 -05:00
Fredrik Ekre
adcc618b42
sync: move try-catch out of needsSyncing and handle errors it in fullSync (#207)
The motivation for this is https://github.com/bitwarden/cli/issues/129
where failed sync's are swallowed by try-catch. By moving the try-catch
to the outside it is possible to reuse the already existing
allowThrowOnError argument which callers can use to signal whether
fullSync should throw or ignore errors silently. This patch is
companioned with a patch to the SyncCommand CLI command to pass
allowThrowOnError.
2020-11-23 12:09:09 -05:00
Matt Gibson
cd6b3d47c2
Include revision date in cipher requests (#203)
This is in conjunction with API changes that validates the last known
revision date provided here with the actual last revision date on the
server to block potential data loss due to client desyncs.

Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
2020-11-23 08:48:40 -06:00
Vincent Salucci
d9d13bbf0e
Update success route before navigate action (#208) 2020-11-22 08:46:56 -06:00
Oscar Hinton
9e4d000b4d
Browser <-> desktop communication (#185)
* Add electron constant for browser integration

* Add constant for browser biometrics. Ensure biometry is locked on lock.

* Avoid saving keys outside desktop

* Fix eslint warning

* Add supportsSecureStorage helper to platformUtils to improve readability
2020-11-18 16:10:57 -05:00
Kyle Spearrin
f44e99d74d
sr lang (#206) 2020-11-18 15:58:12 -05:00
Kyle Spearrin
6563dccf3b
send service and syncing send data (#205)
* send service and syncing send data

* Update send.service.ts
2020-11-18 13:56:41 -05:00
Chad Scharf
85faee21ee
Fixed import for HttpsProxyAgent (#202)
* Fixed import for HttpsProxyAgent

* Try this fix again?

* One more effort, otherwise need to revert

* Syntax error

* Lint error fix

* revert https-proxy-agent version
2020-11-13 15:07:34 -05:00
Marcos Soutullo Rodriguez
37682e7146
Bump https-proxy-agent dep. to 5.0.0 (#201) 2020-11-13 14:06:30 -05:00
eliykat
40214e80a6
expand contributing guide (#200) 2020-11-12 09:37:46 -05:00