1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00
Commit Graph

230 Commits

Author SHA1 Message Date
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
Matt Gibson
3ac42f2f44 Remove unused toData methods (#245) 2021-01-11 10:51:23 -06:00
Kyle Spearrin
afa01f67f4 send removePasswordWithServer and model updates (#242) 2020-12-30 16:23:52 -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
Matt Gibson
cc801ce0d7 Has Totp method will be used to enable quick copy (#225) 2020-12-15 10:02:54 -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
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
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
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
Chad Scharf
6e89c04f3e Added missing member, showValue to Field (#195) 2020-11-03 14:36:19 -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
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
Matthew Rodatus
3628f44f98 Add Microsoft RDP URI schemes (#180)
This will allow users to launch the Remote Desktop client directly from
Bitwarden if their OS supports the URI scheme.

Per
https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-uri,
rdp:// is legacy and ms-rd: is the preferred one. I'm adding both so
that either can be used as ms-rd: is not available on all versions of
Windows and rdp:// is easier to add as a custom URI scheme in Windows 10
if it is desired.
2020-09-24 09:56:59 -04:00
Addison Beck
b5cc5409ff bug fix + added launch time to view component (#178) 2020-09-23 13:53:43 -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
Addison Beck
0bff8bcd56 changed the way we load planResponse objects in organizationResponse objects (#167) 2020-09-08 09:17:04 -04:00
Kyle Spearrin
700e945008 reduce cache ttl to 3 seconds 2020-08-27 14:58:37 -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
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
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
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
Matt Smith
b53046d0d9 Added new _host property for consumption. 2020-07-14 10:02:07 -05:00
Matt Smith
8223011248 Reverted prior change. Changed call to getHost 2020-07-13 15:47:55 -05:00
Vincent Salucci
d308245237 Added new BusinessPortal boolean to all necessary objects (#121) 2020-07-06 17:21:41 -05:00
Chad Scharf
c3389afd4f Add referenceId to register component 2020-06-25 15:44:19 -04:00
Kyle Spearrin
7f6d7424e7 Do not process hostname for regex logins (#117) 2020-06-18 11:58:29 -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
81c76816b9 Ensure viewPassword has a default value 2020-06-12 14:21:27 +02:00
hinton
4d776ca0ef Fix spelling mistakes 2020-06-04 22:15:45 +02:00
hinton
34402571e7 Add newField property to FieldView, used for allowing edits for new fields 2020-06-03 20:45:53 +02: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
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
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