Commit Graph

561 Commits

Author SHA1 Message Date
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 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
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
Addison Beck 79b856cb6e
Implement User-based API Keys (#197)
* Added support for authenticating with an API key

* added api service methods for user api keys

* fixed a copy/pasted api endpoint url

* Let toIdentityToken() use a a prestored client_id in place of the application client_id if one exists

* Allowed for api key auth in the cli

* Removed some commented out code commited for apiKey auth

* Cleanup for ApiKey auth in the CLI

* Removed cli prefix from client_crendential auth types

* Removed ClientPrefix conditional from decoded token getters

* Update src/services/api.service.ts

Co-authored-by: Kyle Spearrin <kspearrin@users.noreply.github.com>

* formatting

* changed command from login --apiKey to login --apikey

Co-authored-by: Kyle Spearrin <kspearrin@users.noreply.github.com>
2020-11-10 15:15:40 -05: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
Kyle Spearrin 8cb5a9f505
hkdf crypto functions (#190)
* hkdf crypto functions

* comment to spec
2020-10-29 15:52:12 -04:00
Chad Scharf 23ded0d115
Fix lint errors/warnings (#187) 2020-10-20 10:20:22 -04:00
Chad Scharf 4cd20f0fa8
Add logging to lowdb storage service (#188) 2020-10-20 09:33:30 -04:00
Josep Marí 685636b129
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
2020-10-09 07:30:55 -04:00
Kyle Spearrin 9216a8ead7
pre-create and chmod 600 data file (#182) 2020-10-01 14:13:51 -04:00
Addison Beck 26d40d4c43
Add login launch data (#174)
* added launch time data to CipherView for autofill

* removed unused code

* fixed linter errors
2020-09-23 12:41:25 -04:00
Kyle Spearrin f0dc38b1c4
update languages (#172)
* update languages

* fix lint error
2020-09-21 11:17:48 -04:00
vachan-maker 5c3e337fb1
Added locale name(ml) (#171)
I have no clue if what I did was correct. If it is not, please try to display the locale name. Thanks
2020-09-21 08:09:10 -04:00
Kyle Spearrin 3bf322a904 support defaultMatch for getAllDecryptedForUrl 2020-09-20 09:47:35 -04:00
Kyle Spearrin 0a20face13
check authed before checking if token has premium (#170) 2020-09-18 15:02:49 -04:00
Chad Scharf 5e0a2d1d99
remove old Edge browser hacks (#168)
* remove old Edge browser hacks

* Remove final edge hacks

* Update constructor parameters

* Update search-ciphers.pipe.ts

Co-authored-by: Kyle Spearrin <kspearrin@users.noreply.github.com>
2020-09-15 10:23:21 -04:00
Chad Scharf fa2b8e834b
Wrap sso login with pre-validation check (#160)
* Wrap sso login with pre-validation check

* Add form promise for SSO preValidate

* Removed boolean variable, .catch()
2020-09-08 10:36:22 -04:00
Addison Beck e07526a1b6
Link existing user to sso (#158)
* facilite linking an existing user to an org sso

* fixed a broken import

* added ssoBound and identifier to an org model

* added user identifier to sso callout url

* changed url for delete sso user api method

* facilite linking an existing user to an org sso

* fixed a broken import

* added ssoBound and identifier to an org model

* added user identifier to sso callout url

* changed url for delete sso user api method

* added a token to the existing user sso link flow

* facilite linking an existing user to an org sso

* fixed a broken import

* facilite linking an existing user to an org sso

* fixed a broken import

* added ssoBound and identifier to an org model

* added user identifier to sso callout url

* changed url for delete sso user api method

* added a token to the existing user sso link flow

* facilite linking an existing user to an org sso

* fixed a broken import

* removed an extra line

* encoded the user identifier on sso link

* code review cleanup for link sso

* removed a blank line
2020-08-27 11:00:05 -04:00
Kyle Spearrin e55528e617
adds support for yoti csv importer (#157) 2020-08-24 12:21:17 -04:00
Kyle Spearrin 9957125d3a
dont set keys if not there on sso (#152)
* dont set keys if not there on sso

* a comment
2020-08-17 14:27:44 -04:00
Josep Marí 5c62938dbb
Add new method for cycling through every login (#142)
* Add new method for cycling through every login

To be used from browser extension when autofilling.
Related PR: https://github.com/bitwarden/browser/pull/956

* Cache sorted ciphers by URL and invalidate them after a period of 5 seconds

* Move file to models
2020-08-12 15:59:59 -04: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
Addison Beck b32b016f82
Merge plan and price updates (#145)
* Created a PlanResponse model & relevant API request for getting plan data from the server
2020-08-11 14:20:39 -04:00
Addison Beck 31a0be290b
Merge pull request #130 from bitwarden/Feature.Web.534.AllowMultiSelectInOrgVault
Set up API calls for bulk delete from within an org vault
2020-08-04 16:02:20 -05:00
Kyle Spearrin 14b01f2e5d null check vaulttimeoutservice 2020-08-04 09:17:25 -04:00
Addison Beck 1cb59b5cc7 added api service methods for delete many w/admin calls 2020-08-03 22:24:06 -04:00
Addison Beck 5d93c84ae6 removed leaky code 2020-08-03 22:24:06 -04:00
Addison Beck 36012e7d6f changed let to const 2020-08-03 22:24:06 -04:00
Addison Beck 88765ad093 yet another formatting issue 2020-08-03 22:24:06 -04:00
Addison Beck f86c7e9c3f fixed a formatting issue 2020-08-03 22:24:06 -04:00
Addison Beck f7058303f3 fix a formatting issue 2020-08-03 22:24:06 -04:00
Addison Beck 573f8283df Removed an extra line 2020-08-03 22:24:06 -04:00
Addison Beck 272ce2330c Added custom field consideration to basic search function 2020-08-03 22:24:06 -04:00
Kyle Spearrin 7d49902eea
SSO login for generic clients and CLI (#140)
* sso

* move break into try block

* make client id dynamic

* clientId is a string, DOH!

* reject if port not available

* lint fixes
2020-08-03 15:24:26 -04:00
Vincent Salucci f301b92dc3
[SSO] Merge feature/sso into master (#139)
* [SSO] Reset Master Password (#134)

* Initial commit of reset master password (sso)

* Updated line length error

* Updated import line again

* Added trailing comma

* restored reference data for RegisterRequest

* Updated tracking boolean name // added success route update based on passed boolean

* Added new API // reverted Register // deleted reset // added change pw and sso

* Changed redirect URI to protected to override in sub-class

* Updated api to setPassword // Updated request model name // Updated change password refs // Updated formatting

* Encoded necessary parts of authorize url // Added default catch error message

* Refactored methods inside change password base component // removed unnecesary query param for sso

* [lint] Fixed error (#137)

* Cleaned lint error

* Fixed sso lint error
2020-08-01 08:42:24 -05:00
Kyle Spearrin 261a20031f
suth service support for complete sso login (#136) 2020-07-31 11:55:14 -04:00
Oscar Hinton c62f5287cd
Desktop biometrics support (#119)
* Initial work on windows hello support

* Switch to use windows.security.credentials.ui UserConsentVerifier

* Fix linting warnings

* Remove unessesary supportsBiometric from lock screen

* Rename biometric.main to windows.biometric.main. Add abstraction for biometric.

* Add support for dynamic biometric text.

* Add untested darwin implementation

* Rename fingerprintUnlock to biometric

* Add new functions to cliPlatformUtils.service.ts.

* Hide login if biometric is not supported

* Export default for biometric.*.main.ts

* Remove @nodert-win10-rs4/windows.security.credentials

* Add build requirements to readme

* Auto prompt biometric when starting the application.

* Ensure we support biometric before trying to auto prompt.

* Fix review comments and linting errors
2020-07-23 13:32:20 -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
Chad Scharf 7fd52c62f3
Merge pull request #115 from bitwarden/feature/tax-info-collection
Support tax collection info
2020-06-17 10:50:14 -04:00
Chad Scharf dea0233ee3 Support tax collection info 2020-06-12 19:29:52 -04:00
Vincent Salucci dd147ce338
[Enterprise] Updated Environment Settings (#112)
* Initial commit of enterprise environment option

* Reverting API/EnvironmentUrls changes
2020-06-11 15:04:40 -05:00
Vincent Salucci 212a2e3745
Bug fix: made lock default conditional check (#106) 2020-05-28 14:09:55 -04:00
Kyle Spearrin 1bbd808105
getEnterprisePortalSignInToken api (#105) 2020-05-27 15:21:53 -04:00
mtgto 8438cafbd0
Update lunr type (#93) 2020-04-14 15:16:18 -04:00
Chad Scharf e52df4f743 [Sot Delete] update to view and i18n for delete 2020-04-10 16:46:57 -04:00
Chad Scharf 3a10c1ff30 [Soft Delete] - cipher search rem deleted flag, filter array conditional 2020-04-08 16:44:13 -04:00
Chad Scharf 549fcc18ff Merge branch 'master' into soft-delete 2020-04-06 19:09:56 -04:00
Vincent Salucci 72e3893f8e
[Auto-Logout] Update Token Service (#94)
* Auto logout on restart

* Updated setTokens function

* Remove async deocrator from setTokens

Co-authored-by: Vincent Salucci <vsalucci@bitwarden.com>
2020-04-06 11:06:32 -05:00
Chad Scharf 19668ab5f2 [Soft Delete] jslib updates for new API updates
New API methods and cipher Deleted Date property, plus search expansion to toggle on deleted flag.
2020-04-03 16:32:15 -04:00
Vincent Salucci 28e3fff739
[Auto-Logout] Implement logout functionality in VaultTimeoutService (#92)
* Initial commit for logic changes in VaultTimeoutService

* Fixed lint error

* Updated logOut spelling - as an action its two words

* Hitting save to make sure all my changes are included

* Made requested changes

Co-authored-by: Vincent Salucci <vsalucci@bitwarden.com>
2020-03-29 10:38:16 -05:00
Vincent Salucci 64c54cfb86
[Auto-Logout] Refactor LockService and Update Dependencies (#91)
* initial commit for lockService name refactor

* Reverted ConstantsService vault timeout key to legacy string value

Co-authored-by: Vincent Salucci <vsalucci@bitwarden.com>
2020-03-27 09:03:27 -05:00
Kyle Spearrin 31a257407b skipNegotiation for websockets 2020-03-21 00:19:40 -04:00
Vincent Salucci 3ad546c39f
Password Generator Sanitize Length (#89)
* Initial commit for length sanitization

* Updated sanitize function

* Updated type instantiation

Co-authored-by: Vincent Salucci <vsalucci@bitwarden.com>
2020-03-18 10:07:57 -05:00
Kyle Spearrin 13d1067eda null check on policies response prop 2020-03-12 15:16:22 -04:00
Vincent Salucci ee8ca0beed
Password Generator Passphrase Policy (#85)
* Initial commit for passphrase enforcement

* Updated type implementation

* Updated default type conditional

* Added helper method to enforced options object

Co-authored-by: Vincent Salucci <vsalucci@bitwarden.com>
2020-03-10 12:50:54 -05:00
Kyle Spearrin 44b86f5dd0
enforce policies when options already known (#83) 2020-03-03 16:03:26 -05:00
Vincent Salucci da9b9b438c
Fixed lint warnings (#82) 2020-03-02 13:45:06 -06:00
Vincent Salucci 6210396aa9
Enforce master password policy (#79)
* Enforce master password policy

* Updated based on requested changes/discussions
2020-03-02 11:05:05 -06:00
Kyle Spearrin 0f699515a4
fixes to getPoliciesByToken (#81) 2020-03-02 11:37:44 -05:00
Kyle Spearrin 4aecc53dde
API for getting policies by token (#80)
* API for getting policies by token

* not authed when calling this API
2020-03-02 10:15:54 -05:00
Vincent Salucci 862057dca6
Enforce Password Generator Policy (#75)
* Enforce Password Generator Policy

* Move policy enforcement to service layer

* Fixed typo (vscode didn't warn..) and adjust import spacing

* Made requested changes
2020-02-26 16:38:11 -06:00
Kyle Spearrin ab9bee29b8
support for encryptr csv importer (#73) 2020-02-19 14:51:46 -05:00
Kyle Spearrin fd260dfbae null check to be consistent with mobile codebase 2020-02-10 10:20:45 -05:00
Kyle Spearrin 3d2e2cb174 sync policies., set up policy service 2020-01-28 22:24:02 -05:00
Kyle Spearrin 7d8143b288 react to policy api changes 2020-01-20 08:54:51 -05:00
Kyle Spearrin f66de2207c policy apis 2020-01-15 11:24:00 -05:00
Kyle Spearrin 5819023bc4 no-store cache 2020-01-13 07:49:05 -05:00
Kyle Spearrin 3f17b642b4 upgrade signalr client 2020-01-09 17:27:07 -05:00
Kyle Spearrin 98c7dc1626 avast json importer 2019-12-20 13:29:56 -05:00
Kyle Spearrin 05c36b300d codebook csv importer 2019-11-25 16:10:51 -05:00
Kyle Spearrin 669f6ddf93 option to allow sync to throw error 2019-10-15 11:06:55 -04:00
Kyle Spearrin e16cb9b801 allow custom user agent on node api service 2019-10-07 10:11:32 -04:00
Kyle Spearrin 9f2d9c0a91 allow custom user agent string 2019-10-07 10:02:18 -04:00
Kyle Spearrin 83d6b2449c fix min character assignments for pw gen 2019-10-05 20:39:46 -04:00
Kyle Spearrin e8130e7934 buttercup csv importer 2019-10-04 10:11:26 -04:00
Kyle Spearrin 575a28e25f in-app purchase pre-check api 2019-09-19 08:52:57 -04:00
Kyle Spearrin ec012c9934 blackberry csv importer 2019-09-11 17:05:29 -04:00
Kyle Spearrin 255bd3962d localeNames mapped to iso codes 2019-09-06 09:33:09 -04:00
Kyle Spearrin b74ee7b3ee memory stored pinProtectedKey 2019-08-29 09:40:50 -04:00
Kyle Spearrin 99d56d936f logmeonce csv importer 2019-08-26 10:06:20 -04:00
Kyle Spearrin fbc7d6c2bc get rid of useCredentials variable 2019-08-22 12:04:15 -04:00
Kyle Spearrin 8a0d371d20 securesafe csv importer 2019-08-21 23:13:08 -04:00
Kyle Spearrin ae37c2198b isViewOpen returns promise 2019-08-20 13:47:15 -04:00
Kyle Spearrin 1f98a2ebcb always set on subscribe 2019-08-16 20:54:21 -04:00
Kyle Spearrin 640c44820a SafariExtension not browser 2019-08-15 15:17:48 -04:00
Kyle Spearrin e96fa17b61 dont use credentials for safari 2019-08-15 14:58:17 -04:00
Kyle Spearrin 4f876fc222 payment response for adjust seats 2019-08-10 13:14:53 -04:00
Kyle Spearrin de9bcac0ec adjust storage with payment intent/method handling 2019-08-10 12:59:47 -04:00
Kyle Spearrin e28e820286 new payment api changes 2019-08-09 23:56:55 -04:00
Kyle Spearrin 0aae22fc00 enable events 2019-07-24 14:40:57 -04:00
Kyle Spearrin 15cf7b433a delay search if indexing 2019-07-23 08:28:53 -04:00
Kyle Spearrin a3c9c7d41e disable event service for now 2019-07-14 11:25:26 -04:00
Kyle Spearrin 21e3026f04 heartbeat 2019-07-11 23:05:38 -04:00
Kyle Spearrin 7bdca0dcb4 event logging on view page fixes 2019-07-09 13:08:36 -04:00
Kyle Spearrin 2830121471 event post is always many 2019-07-03 12:13:20 -04:00