Commit Graph

116 Commits

Author SHA1 Message Date
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
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
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
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
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
Oscar Hinton daa4f6f9a6
Dynamic Modals (#417)
* Move backdrop and click handler to modal service since they should not be used in web

* Add support for opening modals using ViewContainerRef
2021-08-26 10:04:29 +02:00
Vincent Salucci aa81f8fb96
[Callout] Added Enforced Policy Options UI (#458) 2021-08-20 10:51:11 -05:00
Oscar Hinton fe3a387724
Ensure icon component state is reset (#463) 2021-08-20 16:36:07 +02:00
Addison Beck 5717fc9e7f
ensure new sends that select custom expiration date must enter an expiration date (#460) 2021-08-19 17:17:22 -04:00
Matt Gibson 0180d0cce5
Provide information to set webauthn allow in html template (#455) 2021-08-12 15:12:31 -05:00
Matt Gibson 26e8b48deb
Set up captcha iframe only on submit of login (#453) 2021-08-12 15:10:07 -05:00
Thomas Rittson c70c8ecc24
Use custom virtual scroll strategy (#452)
* Add CipherListVirtualScroll strategy

For use in cdk-virtual-scroll. Subclasses the default FixedSizeVirtualScroll
but reads the first available itemSize from the rendered content instead of
setting it in the template.

* Fix linting and style

* Refactor virtual scroll strategy

* linting and style

* Subclass virtual scroll strategy directive

* fix linting

* Fix filename conventions
2021-08-11 12:37:25 +10:00
Thomas Rittson a2b62755bc
Add back in refresh() in ciphers.component (#451) 2021-08-11 08:24:39 +10:00
Thomas Rittson 98098c3fb6
Insert missing await (#449) 2021-08-11 06:36:16 +10:00
Vincent Salucci c2e434e333
[Reset Password v1] Update Temp Password (#446)
* [Reset Password v1] Update Temp Password

* Updating router to protected for child classes to access
2021-08-10 08:02:53 -04:00
Thomas Rittson cae26521cc
Move ciphers paging logic from jslib to web (#436)
* Remove paging logic from ciphers base class

* Fix linting

* Fix spacing

* Remove ngx-infinite-scroll (moved to web)
2021-08-04 08:58:37 +10:00
libertylocked 80cb4e702f
Update package lock for duo_web_sdk in angular (#443) 2021-07-29 19:06:24 +02:00
Daniel James Smith 23309d33e2
Add missing dependency 'duo_web_sdk' in jslib/angular/package.json (#441) 2021-07-28 18:35:03 +02:00
Oscar Hinton de288913e4
Add helper methods to EnvironmentService for retrieving urls (#435) 2021-07-23 20:03:52 +02:00
Matt Gibson c77441b353
Use both instanceof and constructor name as type identification (#438)
* Use both instanceof and constructor name as type identification

* Linter fix
2021-07-23 11:47:06 -05:00
Matt Gibson e9d9cd0182
Feature/use hcaptcha on register if bot (#434)
* Parse captcha required from error messages

CaptchaProtectedAttribute produces an error with captcha information.
We want to parse that data out to make it easily accessible to components

* Don't show error on catpcha

The component should hande this situation.

* Add captchaResponse to captcha protected api endpoints

* Extract captcha logic to abstract base class

* Add captcha to register

* linter fixes

* Make sure to log Captcha required responses

* Match file naming convention

* Separate import into logical groups by folder

* PR review
2021-07-22 12:28:45 -05:00
Matt Gibson 1006f50ef3
Feature/use hcaptcha if bot (#430)
* Handle hcaptch required identity response

* Refactor iframe component for captcha and webauthn

* Send captcha token to server

* Add captcha callback

* Clear captcha state

* Remove captcha storage

* linter fixes

* Rename iframe components to include IFrame

* Remove callback in favor of extenting submit

* Limit publickey credentials access

* Use captcha bypass token to bypass captcha for twofactor auth flows

* Linter fixes

* Set iframe version in components
2021-07-21 07:55:26 -05:00
Addison Beck 58be5796b0
Resolved Safari Date/Time Issues In Send (#428)
* cleaned up date and time logic for Send

* time rename

* fixed casing

* added suffix
2021-07-16 13:53:46 -04:00
Oscar Hinton 48d2ffc8d7
Add UserNamePipe (#429) 2021-07-16 15:24:14 +02:00
Oscar Hinton 75fff66f98
Move regexpEmojiPresentation to Utils class (#426) 2021-07-08 16:40:10 +02:00
Thomas Rittson f711c48696
Transpile unicode property escape regex for backwards compatibility (#424)
* Revert "Update color-password.pipe.js to handle Unicode/Emoji correctly accross platforms. (#354)"

This reverts commit b6f102938f.
Reason: incompatible with FF <= 77

* Revert "Revert "Update color-password.pipe.js to handle Unicode/Emoji correctly accross platforms. (#354)""

This reverts commit 4a0b2641ebb0c9c797f1cd06f6b2401659c1f65d.

* Transpile unicode property escape regex

For compatibility with <= FF 77 and other older browsers

* Fix linting
2021-07-07 07:43:22 +10:00
Shashank S aff5ad1faa
feat: radio button options (#420) 2021-07-02 11:33:11 +10:00
Thomas Rittson 6f6b5a5503
[macOS] Don't enable secure input when app is not in focus (#419)
* Don't engage macOS secure input if not focused

* Refactor to use focusInputOnPageLoad

* Refactor to remove focusInputOnPageLoad
2021-07-02 10:06:54 +10:00
Matt Gibson 5e24a70a87
Vault should be locked if key is not in memory (#413)
Key is loaded on startup if auto key exists.
2021-06-21 17:47:44 -05:00
Matt Gibson f568c87289
Add org name to moved to org success toast (#412) 2021-06-18 07:17:42 -05:00
Thomas Rittson d63ee1858d
Add backwards compatability for new local hashing method (#407)
* Add backwards compatability for existing keyHash

* Minor changes for review comments
2021-06-15 07:35:58 +10:00
Thomas Rittson 8797924bd1
Use 2 iterations for local password hashing (#404)
* Use 2 iterations for local password hashing

* fix typo
2021-06-10 07:24:31 +10:00
Matt Gibson 5ba1416679
Authenticate with secure storage service (#402)
* Split secure key into use case

Allows us to push authentication for key access as late as possible.

* Do not reload if biometric locked

* Linter fixes

* Fix key upgrade scenario

* Fix boolean value message parsing

* Handle systems which don't support biometrics

* Do not fail key retrieval on secret upgrade

* Ensure old key is removed regardless of upgrade success

* Log errors
2021-06-09 15:53:54 -05:00
Thomas Rittson fdc6f7b1d2
Refactor canactivate guards (#401)
* Refactor route guards to allow for subclassing

* fix linting
2021-06-09 07:35:03 +10:00
Oscar Hinton ff387622e0
Add button to open webauthn new tab (#398) 2021-06-07 18:38:15 +02:00
Oscar Hinton 1016bbfb9e
Split jslib into multiple modules (#363)
* Split jslib into multiple modules
2021-06-03 18:58:57 +02:00