Commit Graph

73 Commits

Author SHA1 Message Date
Matt Gibson 58f40b0085
Fix glob processing in npm. Ban single param parens (#257) 2021-02-04 09:49:23 -06:00
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
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
Kyle Spearrin 0e9e73ce95
Some groundwork for Send (#192)
* send work

* New method to update the last used index (#184)

Instead of updating it every time you call getNext(), it will be updated in a separate call, to avoid updating the index when the cipher did not auto-fill correctly (e.g wrong frame)
Fixes #1392

* added OnlyOrg to PolicyType enum (#183)

* [Require SSO] Add policy type enumeration (#186)

* Added SsoAuthentication policy type

* Updated policy type name // added comments for clarification of what each type controls

* [SSO] New user provision flow (#173)

* Initial commit of new user sso flow

* Adjusted stateSplit conditional per review

* Add logging to lowdb storage service (#188)

* Fix lint errors/warnings (#187)

* remove password api

* access id

* makeSendKey

Co-authored-by: Josep Marí <xusoo@users.noreply.github.com>
Co-authored-by: Addison Beck <abeck@bitwarden.com>
Co-authored-by: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com>
Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com>
2020-11-02 15:58:18 -05:00
Oscar Hinton e516692559
Upgrade TypeScript (#148)
* Update typescript to 3.6.5 along with tslint to latest.

* Upgrade @types/node to 12.12.54 to get rid of compile errors.

* Update tslint.

* Use @types/node 10.17.28 instead
2020-08-12 15:42:42 -04:00
Kyle Spearrin fefef546f0
sso support (#127)
* support for sso

* created master password boolean

* resetMasterPassword flows

* throw on bad ctor for token request
2020-07-16 08:59:29 -04:00
Matt Smith 57649f31c4 Moved error checking to utils, where parse is 2020-07-10 10:01:15 -05:00
Kyle Spearrin eef9588646
check for empty string on malformed URL (#108) 2020-06-01 14:31:42 -04:00
Pasi Niemi fb7335b927
Enable alternative ways for settings passwords (#101)
* Enable alternative ways for settings passwords:
* the environment variable BW_PASSWORD
* prefix the command line argument with "file:" and the password will read from the first line of that file
* prefix the command line argument with "env:" and the password will be read from that environment variable

* Appveyor fixes

* Switch to using command options for password file and password env

* Lowercase options
2020-05-08 10:38:28 -04:00
Kyle Spearrin 0092aac275
fixes to url parsing (#99)
* fixes to url parsing

* make it a little more intelligent to pass tests
2020-04-29 11:47:34 -04:00
jgfaust c91ab626c2 The domain of data URLs should be null. (#59) 2020-01-25 07:52:51 -05:00
Kyle Spearrin 034aefa652 isGuid util 2019-10-01 11:03:51 -04:00
Kyle Spearrin cc614e68d9 added isAppleMobileBrowser util 2019-09-06 09:06:01 -04:00
Kyle Spearrin 965e35604c remove finally() since it is not supported in older browsers 2019-03-05 17:12:51 -05:00
Kyle Spearrin dd46d5ecdd formatting fix 2019-02-07 15:43:11 -05:00
Kyle Spearrin 04e6fac5e4 start to tray updates 2019-02-02 12:26:46 -05:00
Kyle Spearrin 4634dd2e83 formatting 2019-02-02 12:08:53 -05:00
Fred Cox db37a831e4 Throttle calls to HIBP api (#25)
Randomly failing to check by passwords, I'm pretty sure its because ~2000 connections are made at the same time.
2019-02-02 10:17:44 -05:00
Kyle Spearrin ff0e166755 formatting 2019-02-02 10:06:44 -05:00
Fred Cox e7f4dccfc3 Clear sequentialize cache when empty to remove chance of memory leaks (#26) 2019-02-02 09:23:16 -05:00
Kyle Spearrin cb7336c0e8 null or whitespace util 2019-01-15 11:34:35 -05:00
Kyle Spearrin f4c4f28026 disable analytics 2019-01-15 11:02:15 -05:00
Kyle Spearrin f3f17138c8 check for existing protocol 2019-01-07 10:40:11 -05:00
Kyle Spearrin e7464785e1 allow launching URLs without protocol than end with tld 2019-01-07 10:33:13 -05:00
Kyle Spearrin aa17849329 install and use duo_web_sdk w/ npm 2018-12-18 17:00:07 -05:00
Kyle Spearrin 5609fecbce continue logic 2018-11-30 09:49:08 -05:00
Kyle Spearrin aa0b274f8f store parent node 2018-10-26 16:08:48 -04:00
Kyle Spearrin d4b3a16fd1 getNested tree object by node id 2018-10-26 10:48:06 -04:00
Kyle Spearrin 59f0549072 getAllNested for collections too. added treenodeobject interface 2018-10-25 12:09:22 -04:00
Kyle Spearrin 0d30a1a1c9 tldjs noop 2018-10-13 22:43:54 -04:00
Kyle Spearrin ad97afc590 move getDomain to jslib Utils 2018-10-13 22:21:54 -04:00
Kyle Spearrin c35576deb8 ns updates and overloads 2018-10-13 00:11:06 -04:00
Kyle Spearrin d5f86747bf passphrase cleanup 2018-10-08 17:54:54 -04:00
Martin Trigaux c4da05dbb0 Add a passphrase generation mechanism (#12)
Based on EFF's wordlist
The wordlist was selected based on arguments mentionned in
https://www.eff.org/deeplinks/2016/07/new-wordlists-random-passphrases
over Arnold Reinhold's Diceware list from 1995 such as avoid short,
deused or diffcult to pronounce words
2018-10-08 17:26:13 -04:00
Kyle Spearrin 46f9e17056 add nativescript support to utils 2018-09-10 15:57:59 -04:00
Kyle Spearrin 3c43265878 change to 700 perms 2018-08-27 22:59:50 -04:00
Kyle Spearrin 0f68f0507e use string mode 2018-08-27 22:54:51 -04:00
Kyle Spearrin 2bc7c42733 catch security errors on ie when reading hostname 2018-08-22 08:37:52 -04:00
Brandon Davis a5476f12aa feature/cli-18-import (#8)
* feature/cli-18-import

* updates to jslib
2018-08-06 09:37:56 -04:00
Kyle Spearrin a26527b500 is mobile browser checks on autofocus 2018-08-01 09:13:49 -04:00
Kyle Spearrin 41ab22a82f support for otpauth:// urls for totp codes 2018-07-31 11:25:50 -04:00
Kyle Spearrin 9df96a3288 default disable on FirefoxExtension 2018-07-25 11:01:03 -04:00
Kyle Spearrin 0b2fab43d5 ref PR for mem leak explanation 2018-07-23 15:46:59 -04:00
Kyle Spearrin 70a0044ac5 added memory leak warning 2018-07-23 15:41:54 -04:00
Kyle Spearrin 61d2040518 sequentialize updates 2018-07-23 15:12:32 -04:00
Kyle Spearrin 8e586437e0 sequentialize fixes 2018-07-23 14:47:28 -04:00
Kyle Spearrin 003c730eb1 sequentialize updates 2018-07-23 14:42:37 -04:00
Fred Cox 04014a8e78 Add sequentialize to prevent parralel loading of cipher keys (#7)
* Add sequentialize to prevent parralel loading of cipher keys

Massively improves start up performance of extensions

* Add tests for sequentialize

* Fix sequentialize as it was caching calls for all instances together

* Add sequentialize to the functions that have internal caches

* Adding sequentialize to getOrgKeys makes big performance difference

* Update cipher.service.ts

* Update collection.service.ts

* Update folder.service.ts
2018-07-23 14:23:30 -04:00
Kyle Spearrin 240e5ba5ab parse function 2018-07-21 14:38:21 -04:00
Kyle Spearrin 7b89ad6bf7 check event.data type. some debug logging 2018-07-21 14:07:06 -04:00