1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-18 09:13:19 +00:00
Commit Graph

81 Commits

Author SHA1 Message Date
addison
c527ce85e8 laptop issue 2021-11-26 20:37:55 -05:00
addison
6754b6ceeb Merge branch 'master' into AccountService 2021-11-16 13:32:16 -05:00
Thomas Rittson
720967475b Update base export component for userVerificationService changes (#552)
* Use new try/catch pattern in export.component

* Set initial value in VerifyMasterPass component
2021-11-16 19:43:37 +10:00
Thomas Rittson
386903f5a9 [Key Connector] QA fixes for CLI and Desktop (#544)
* Make UserVerificationService compatible with CLI

* Refactor error handling

* Fix i18n key name

* Add apiUseKeyConnector flag to TokenResponse

* Always require keyConnectorUrl to be passed in

* Throw errors in userVerificationService

* Use requestOTP in UserVerificationService

* Remove unused deps

* Fix linting
2021-11-16 07:53:57 +10:00
addison
b5efd3e9be [bug] Ensure keys and tokens load and save to the right locations for web 2021-11-12 15:10:43 -05:00
Thomas Rittson
e02e663ce1 [Linked Fields] Fix QA feedback (#542)
* Fix bug overwriting custom field types

* Add linkedId to export model for CLI
2021-11-12 05:59:01 +10:00
addison
5e1aa81797 [review] [bug] Put back the homepage variable in lock guard 2021-11-11 12:38:33 -05:00
addison
00d8d87420 [style] Fix lint complaints 2021-11-11 12:17:18 -05:00
addison
00affbad36 [review] [refactor] Extract lock refresh logic to a load function 2021-11-11 11:58:41 -05:00
addison
3a179e0922 [review] Revist remember email 2021-11-10 10:14:20 -05:00
addison
4c1a48c92e [chore] Update recent KeyConnector changes to use stateService 2021-11-09 14:21:14 -05:00
addison
e3edffd462 Merge branch 'master' into AccountService 2021-11-09 13:52:18 -05:00
Oscar Hinton
8f177e2d3a Add support for requesting and using otp for verifying some requests (#527)
Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
2021-11-09 17:01:22 +01:00
Thomas Rittson
99ff3feb53 [Linked fields] Fix change detection on cipherType (#536)
* Fix bug that clears linkedId values when editing

* Add null check

* Fix linting
2021-11-09 21:57:33 +10:00
addison
3f1e84afa3 [bug] Ensure lock component is always working with the latest active account in state 2021-11-05 13:47:06 -04:00
addison
67677b7abe [bug] Add missing await to auth guard 2021-11-03 19:47:30 -04:00
Thomas Rittson
2db9e1ce0d [Linked fields] Reset linkedIds if cipher type changes (#535)
* Reset linkedIds if cipher type changes

* Only reset linkedId if !editmode
2021-11-04 07:24:45 +10:00
Robyn MacCallum
6e3def21ae Update unauth-guard.service.ts
Add back return true
2021-11-03 09:57:50 -04:00
Thomas Rittson
dbda39e10f Add Linked Field as custom field type (#431)
* Basic proof of concept of Linked custom fields

* Linked Fields for all cipher types, use dropdown

* Move linkedFieldOptions to view models

* Move add-edit custom fields to own component

* Fix change handling if cipherType changes

* Use Field.LinkedId to store linked field info

* Refactor accessors in cipherView for type safety

* Use map for linkedFieldOptions

* Refactor: use decorators to record linkable info

* Add ItemView

* Use enums for linked field ids

* Add union type for linkedId enums, add jsdoc comment

* Use parameter properties for linkedFieldOption

Co-authored-by: Matt Gibson <mgibson@bitwarden.com>

* Fix type casting

Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
2021-11-03 08:03:37 +10:00
addison
54fa024eb4 [feature] Implement account switching capable services across components and processes
* Replace calls to StorageService and deprecated services with calls to a StateService
2021-11-01 14:23:54 -04:00
Robyn MacCallum
031cbff556 Add role="alert" to callouts only when enforceAlert is passed (#528)
* Add role="alert" to callouts when enforceAlert is passed

* Remove ElementRef and do a different way

* Rename input variable
2021-10-26 11:41:46 -04:00
Oscar Hinton
71f8ef601f Add support for crypto agent (#520) 2021-10-25 18:21:40 +02:00
Thomas Rittson
24fe836032 Fixes for dynamic modal a11y (#518)
* Do not close modal if click finishes on background

* Trap tab focus in modals, use ESC to close modal

* Fix Angular change detection errors in modals

* Reset focus on next modal after closing modal

* Minor fixes and linting

* Attach focusTrap to modal-dialog element

* Change mousedown event back to click

* Make topModal private

* Add new div for dismissing modal by clicking bg

* Focus element in modal if no autoFocus directive

* Use backdrop for dismissal

* Fix typo
2021-10-21 08:13:37 +10:00
Oscar Hinton
f09fb69882 Remove empty catch blocks, and update tslint rule (#513) 2021-10-19 10:32:14 +02:00
Thomas Rittson
a20e935268 Use rxjs first instead of unsubscribe (#516) 2021-10-14 10:27:52 +10:00
Oscar Hinton
56233e4002 Move Avatar component to jslib (#496) 2021-10-13 09:55:19 +02:00
Vincent Salucci
542852a3be [Reset Password] BUG - Update local policies for enforcement (#510) 2021-10-08 11:18:25 -05:00
Addison Beck
e69425cb41 [bug] Set a default value for custom send deletion times in the safari extension (#511)
* [bug] Set a default value for custom send deletion times in the safari extension

* [review] tomorrow -> nextWeek for default custom send deletion time values
2021-10-08 10:42:22 -04:00
Thomas Rittson
64bc115109 Set default ownership if Personal Ownership policy applies (#509) 2021-10-08 07:15:02 +10:00
Oscar Hinton
bfa9a1e1bc Remove Business Portal, add SSO configuration models (#506) 2021-10-06 19:36:20 +02:00
Oscar Hinton
91b73fa777 Resolve biometric error dissapearing before being read (#501) 2021-09-28 16:23:25 +02:00
Oscar Hinton
206ef610d0 Bump signalr to 5.0.10 (#502) 2021-09-28 15:47:19 +02:00
Oscar Hinton
2c892eb3a2 Add webfonts (#500) 2021-09-24 15:36:51 +02:00
Thomas Rittson
b7429b0c0c Fix import statements (#494) 2021-09-20 17:49:59 +10:00
Thomas Rittson
25afe79714 Fix import statements (#493) 2021-09-20 17:23:00 +10:00
Thomas Rittson
0f984efd61 Move custom fields to separate components (#489)
* Move add-edit custom fields to own component

* Fix linting

* Fix change handling if cipherType changes

* Removed linked fields work

* Move view custom fields to own component

* Remove unnecessary imports

* Remove old logic from component
2021-09-20 10:36:40 +10:00
Vincent Salucci
16e998e664 [Reset Password v1] Refactor ForcePasswordReset into AuthResult (#481) 2021-09-17 10:53:50 -05:00
Oscar Hinton
83548a6753 Remove deprecated index.ts (#490)
* Remove deprecated index.ts

* Update tests
2021-09-17 14:57:31 +02:00
Vincent Salucci
da132217da [SSO Auto Enroll] Auto Enroll status retrieval (#486)
* [SSO Auto Enroll] Auto Enroll status retrieval

* Fixed import order

* Updated object property
2021-09-15 12:54:44 -05:00
Oscar Hinton
ee1ea922a9 Disable Private Vault Export Policy (#482) 2021-09-14 16:32:06 +02:00
Thomas Rittson
a85c45a34e Use a modal to set the unlock pin (#477)
* Move set pin logic to its own modal

* Fix method name and default value
2021-09-10 08:57:32 +10:00
Oscar Hinton
32774561f3 Add MaximumVaultTimeout policy type (#480) 2021-09-09 17:05:40 +02:00
Oscar Hinton
bbe8d3df48 Revert "Vault Timeout Policy (#474)" (#479)
This reverts commit bba2812fdd.
2021-09-08 23:06:42 +02:00
Oscar Hinton
bba2812fdd Vault Timeout Policy (#474) 2021-09-08 22:02:19 +02:00
Vincent Salucci
ef743ea8ca [SSO] Set password auto enroll update (#472)
* [SSO/Auto Enroll] Set Password enrolls new user

* Fixed typo

* Linter updates

* Cleanup // Constructor for SetPasswordRequest
2021-09-03 14:49:03 -05:00
Thomas Rittson
1c1f080acf Fix undefined variable error in desktop (#470) 2021-09-01 07:19:16 +10:00
Matt Gibson
d3ee08abb6 Log full error for better debugging support (#473) 2021-08-31 14:59:54 -05:00
Oscar Hinton
d50531886b Add support for setting up component factory resolvers in modal service (#471) 2021-08-31 16:35:20 +02:00
Thomas Rittson
30419a625f Move policy checks within policyService (#466)
* Move policy logic within policyService

* Remove unneeded import

* Clean up unused code

* Fix linting

* Enforce policies from accepting org invite

* Only exempt owner or admin from policies

* Use canManagePolicies as exemption criteria

* Make orgUser status check more semantic

Co-authored-by: Addison Beck <abeck@bitwarden.com>

Co-authored-by: Addison Beck <abeck@bitwarden.com>
2021-08-31 06:52:57 +10:00
Vincent Salucci
f02720a1c6 [Callout] Added pstyling class (#468) 2021-08-27 17:05:02 -05:00