1
0
mirror of https://github.com/bitwarden/jslib synced 2026-01-04 17:43:14 +00:00
Commit Graph

86 Commits

Author SHA1 Message Date
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
Addison Beck
0565d6f667 Implemented tax collection for subscriptions (#215) 2020-12-04 12:05:31 -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
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
Vincent Salucci
d84d6da7f7 [SSO] New user provision flow (#173)
* Initial commit of new user sso flow

* Adjusted stateSplit conditional per review
2020-10-13 15:21:03 -05:00
Kyle Spearrin
7bf00b4fb3 extend functionality for set password flow (#150) 2020-08-17 10:34:52 -04:00
Kyle Spearrin
ed6978baff add support for org identifier to api models (#149) 2020-08-12 16:38:32 -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
144f06a115 added org id to the bulk delete request model 2020-08-03 22:24:06 -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
Chad Scharf
97d24f5abf reference event data model changes 2020-07-20 15:21:01 -04:00
Chad Scharf
9ca79c4929 Reference id to data conversion 2020-07-17 16:05:58 -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
c3389afd4f Add referenceId to register component 2020-06-25 15:44:19 -04:00
Chad Scharf
983f0cbfa7 re-order import 2020-06-17 20:09:47 -04:00
Chad Scharf
fb70ca8fe9 tax info extends payment request 2020-06-17 20:07:59 -04:00
Chad Scharf
01fd705081 extend payment request to collect tax info 2020-06-17 19:46:28 -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
hinton
1fa3eb49ad Add support for collections with hide passwords 2020-05-21 15:54:15 +02: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
Kyle Spearrin
f66de2207c policy apis 2020-01-15 11:24:00 -05:00
Kyle Spearrin
575a28e25f in-app purchase pre-check api 2019-09-19 08:52:57 -04:00
Kyle Spearrin
7bdca0dcb4 event logging on view page fixes 2019-07-09 13:08:36 -04:00
Kyle Spearrin
49a6b5046f setup for client event collection 2019-06-20 08:56:45 -04:00
Kyle Spearrin
b0b6ad4ebd overwriteExisting on org user import 2019-05-06 21:32:05 -04:00
Kyle Spearrin
593870e936 org upgrade api 2019-03-21 21:38:52 -04:00
Kyle Spearrin
79fea92b81 collection externalId 2019-03-07 15:17:58 -05:00
Kyle Spearrin
48164a31d9 support camel or pascal case in API responses 2019-03-01 00:13:37 -05:00
Kyle Spearrin
3362334d2c post bitpay invoice api 2019-02-21 22:45:56 -05:00
Kyle Spearrin
36e65f08ca payment method types 2019-02-19 17:05:27 -05:00
Kyle Spearrin
9c44fc1329 remove country from org create req 2019-02-18 23:53:31 -05:00
Kyle Spearrin
5d5200b12e premiumAccessAddon option when creating org 2018-11-20 15:58:27 -05:00
Kyle Spearrin
17e7ee4838 support for new attachment keys 2018-11-13 20:43:45 -05:00
Kyle Spearrin
194374ea73 support org/collection selection on cipher add 2018-10-19 11:20:04 -04:00
Kyle Spearrin
bf48b45010 apis for new create with collections 2018-10-19 09:14:11 -04:00
Kyle Spearrin
4b7962dc8f add support for u2f setup apis 2018-10-08 14:21:53 -04:00
Kyle Spearrin
38c26d9649 Fix !== null checks 2018-08-30 21:47:41 -04:00
Kyle Spearrin
ae54094fcd kdf apis 2018-08-27 19:55:05 -04:00
Kyle Spearrin
9bd8b73e27 standardize date types 2018-08-20 16:20:51 -04:00
Kyle Spearrin
d0c51bacfd sync folders and ciphers. fix dates 2018-08-20 16:01:26 -04:00
Kyle Spearrin
9f26f9f377 support for prelogin kdf info 2018-08-14 15:12:10 -04:00
Kyle Spearrin
6a8d2c305e support for password revision date on logins 2018-07-27 17:48:18 -04:00
Kyle Spearrin
dab9954887 send password history to server 2018-07-27 16:44:20 -04:00
Kyle Spearrin
f35ecf0cd8 update key api changes 2018-07-17 17:22:45 -04:00
Kyle Spearrin
1cb3447bdd org seat billing api 2018-07-17 12:05:19 -04:00
Kyle Spearrin
9c0b4b8973 org billing apis 2018-07-17 11:04:19 -04:00
Kyle Spearrin
3649e2fffe org apis 2018-07-16 12:30:45 -04:00
Kyle Spearrin
51f041a959 recover delete apis 2018-07-13 15:55:02 -04:00