Commit Graph

1701 Commits

Author SHA1 Message Date
Bernd Schoolmann 15610906d2
[PM-7608] Account Security Settings V2 (#10441)
* Implement account security settings v2

* Increase await dialog delay to 500 msec

* Update messages

* Replace platformservice with biometricsservice

* Cleanup

* Cleanup

* Fix account security component according to feedback

* Re-add old message

* Re-add old error message

* Fix minimum timeout message

* Fix screen-reader on custom timeout

* Remove debugging configurations

* Fix incorrectly changed message

* Remove custom vault timeout text

* Restore vaultTimeoutPolicyInEffect i18n message in web

* Change text to use vaultTimeoutPolicyInEffect1

* Fix tests
2024-09-16 17:40:08 +02:00
Cesar Gonzalez b0e0e71974
[PM-11517] Improve autofill collection of page details performance (#10816)
* Testing out a rework of the performance improvements introduced into extension

* Working through improvements

* Implementing max_depth methodology for the deepQuery approach used when querying elements

* Refactoring implementation

* Refactoring implementation

* Fixing jest tests

* Incorporating documenation within domQueryService

* [PM-11519] `browser` global reference triggering an error when sending an extension message

* [PM-11517] Working through refactoring and jest testing of the domQueryService

* [PM-11517] Working through refactoring and jest testing of the domQueryService

* [PM-11517] Incorporating tests for the debounce util method

* [PM-11517] Incorporating tests for the debounce util method

* [PM-11517] Removing unnecessary property

* [PM-11517] Starting to work through an idea regarding querying without the shadowDom on pages that definitively do not contain a ShadowDOM element

* [PM-11419] Adjusting implementation to ensure we clear any active requests when the passkeys setting is modified

* [PM-11517] Removing unnecessary comments
2024-09-16 08:35:56 -05:00
rr-bw 6d1d02a264
rename loginService prop to loginComponentService 2024-09-14 13:52:08 -07:00
rr-bw 6bbbfcd145
add jsdocs to LoginComponentService 2024-09-14 13:47:10 -07:00
rr-bw 0bb18eb36c
rename LoginService to LoginComponentService to avoid confusion with the LoginStrategyService 2024-09-14 13:27:13 -07:00
rr-bw d88606a6fd
setup launchSsoBrowserWindow() for Desktop 2024-09-14 12:59:51 -07:00
rr-bw da18b42f80
add launchSsoBrowserWindow() to default service 2024-09-14 12:05:39 -07:00
rr-bw 66072f66e8
cleanup & comments 2024-09-14 10:59:43 -07:00
rr-bw e076e94c08
move extension launchSsoBrowserWindow() to extension service 2024-09-13 17:21:15 -07:00
rr-bw b7996183bf
add launchSsoBrowser to extension template 2024-09-13 16:40:54 -07:00
rr-bw 4df7712c13
add todo comment regarding browser template 2024-09-13 15:56:24 -07:00
rr-bw 236c41e6f8
add browser redirect from /home to /login with FF on 2024-09-13 15:53:47 -07:00
rr-bw 80fd8bd5b0
update captcha iframe on all clients 2024-09-13 15:17:31 -07:00
rr-bw 8fa5c55088
remove 'V2' from new component 2024-09-13 14:53:44 -07:00
rr-bw 532d3eaefc
change old components to V1 2024-09-13 14:49:52 -07:00
rr-bw c44634585f
update icon stroke color 2024-09-13 13:42:57 -07:00
rr-bw 4012a6c594
ensure full sync happens on all clients before navigation 2024-09-13 10:54:13 -07:00
rr-bw de4b1778c1
merge main, fix conflicts 2024-09-13 10:05:57 -07:00
rr-bw 96d116d643
[PM-8116] Auth Browser Refresh: Password Hint Component (#10492)
* setup component, services, and web HTML

* make Web and Browser functional

* make desktop functional

* update template to solidify common client HTML

* simplify template and class

* update browser routing

* move canActivate to correct location

* simplify post submit routing

* update routing to use unauthUiRefreshSwap()

* constrain AnonLayout title/subtitle width, reduce height on destkop to account for header

* reduce height on browser to account for header (otherwise have to scroll to see EnvSelector

* resolve email issue when clicking 'cancel' on extension popout

* update routing for web

* persist email to popout

* update web router and anon-layout min-h based on client

* change anchor link to button

* remove unnecessary formatting changes

* add new icon

* remove unnecessary call to loginEmailService
2024-09-13 09:16:25 -07:00
Bernd Schoolmann 54cc35e29a
[PM-6037] Fix process reload not triggering on inactive account lock/logout (#9805)
* Send loggedOut/locked events on logout/lock event

* Revert "Send loggedOut/locked events on logout/lock event"

This reverts commit 293f2d6131.

* Ensure loggedOut is sent for non-active user logouts too

* Make loggedOut accept userIds

* Add userBeingLoggedOut in desktop app component

* Await updateconnection calls
2024-09-13 18:11:05 +02:00
Andreas Coroiu a1aa9adb48
feat: simplify lazy.ts (#10951) 2024-09-13 09:09:45 +02:00
Jordan Aasen 023912c53d
[PM-11631] - hide free Bitwarden Families button if user is not eligible (#10971)
* hide  Free Bitwarden Families button if user is not eligible

* use organizationService.canManageSponsorships$ for determining if free bitwarden families is available

* update comment
2024-09-13 11:58:18 +10:00
Jared Snider bd3863c313
Auth/PM-11969 - Registration with Email Verification - Accept Emergency Access Invite Flow (#11018)
* PM-11969 - Registration with Email Verification - Accept Emergency Access Invite Fixed

* PM-11969 - Fix PR feedback

* PM-11969 - AcceptEmergencyComponent - remove prop
2024-09-12 20:14:37 -04:00
rr-bw 350459f04f
Extension: setup MasterPasswordEntry state UI 2024-09-12 14:55:28 -07:00
rr-bw e616218de5
Extension: setup EmailEntry state UI 2024-09-12 14:46:42 -07:00
rr-bw 9cb64b59ca
remove 'showPassword' property b/c now handled by bitPasswordInputToggle 2024-09-12 14:04:44 -07:00
rr-bw 7a4b83afde
desktop HTML template updates 2024-09-12 14:02:13 -07:00
rr-bw bb5f88f8c7
remove static element ref 2024-09-12 13:29:11 -07:00
Justin Baur fe96aa85f2
[PM-12007] Fix vault timeout action logout with account switching (#11008)
* Protect Against Toast Error

* Use `concatMap` Instead of `switchMap`
2024-09-12 15:59:33 -04:00
Nick Krantz a31ecb18a1
[PM-11267] Extension Refresh Events (#10832)
* add `Cipher_ClientViewed` event to browser refresh components

* add `Cipher_ClientToggledPasswordVisible` event to browser refresh components

* add `Cipher_ClientToggledHiddenFieldVisible` event to browser refresh components

* add `Cipher_ClientToggledCardCodeVisible` event to browser refresh components

* add `Cipher_ClientToggledCardNumberVisible` event to browser refresh components

* add `Cipher_ClientToggledTOTPSeedVisible` event to browser refresh components

* add `Cipher_ClientCopiedPassword` event to browser refresh components

* add events for copying cipher fields from the vault menu

* add `Cipher_ClientCopiedHiddenField` event to browser refresh components

* add mock for tests

* add missing `Cipher_ClientCopiedCardCode` event

* remove the need for separate fields input

* add organization id to event collection so events are collected

* update test

* add event collection service to cipher form stories
2024-09-12 14:47:23 -05:00
Jared Snider b6cde7e3ef
Auth/PM-11945 - Registration with Email Verification - Fix Org Sponsored Free Family Plan not working (#11012)
* PM-11945 - AcceptOrg - fix inaccurate comment.

* PM-11945 - Refactor new registration process to pass along orgSponsoredFreeFamilyPlanToken

* PM-11945 - RegistrationFinishComponent - wire up passing of orgSponsoredFreeFamilyPlanToken to submit method

* PM-11945 - Add todo
2024-09-12 15:24:35 -04:00
rr-bw 6ffaeae331
add dynamic anon-layout wrapper data 2024-09-12 11:39:43 -07:00
Daniel James Smith f70b3df2d2
[PM-11949] Fix generating and copying export password (#10999)
* Use password field value instead of local variable for copy to clipboard

Use appCopyClick directive instead of manually copying and showing success toast

* Add missing "copySuccessful" message key to desktop and web

* Remove whitespace from web en/messages.json

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2024-09-12 20:04:39 +02:00
rr-bw 8696330245
change email validation to only run on submit (or when clicking continue button) 2024-09-12 11:04:15 -07:00
Jake Fink 07d2e36496
[PM-10914] add option to delete all folders if migration fails (#10983)
* add option to delete all folders if migration fails

* update text and flow to reattempt migration

* clear encrypted folders as well on delete all

* Update messaging
2024-09-12 13:47:35 -04:00
rr-bw 0cf965cdae
web template modifications 2024-09-12 10:42:46 -07:00
rr-bw 677829f03a
handle registerRoute$ in secondary content 2024-09-12 09:51:26 -07:00
rr-bw c89eb92a63
handle oss-routing swap 2024-09-12 09:19:21 -07:00
rr-bw f9dc91228b
refactor to use a uiState enum for UI states 2024-09-11 16:47:43 -07:00
rr-bw 96f31ecf61
add descriptive comment to top of HTML file 2024-09-11 13:13:14 -07:00
Jason Ng 89751f46d6
[PM-254] Set PDF Attachments in Web to download, add success toast (#10757)
* add success toast to pdf attachment download in web

* update desktop attachments for toastService

* removed trailing comma

---------

Co-authored-by: gbubemismith <gsmithwalter@gmail.com>
Co-authored-by: SmithThe4th <gsmith@bitwarden.com>
2024-09-11 15:27:53 -04:00
Victoria League a0a0a7ae13
[CL-395] Add and use art colors in svgs (#10990) 2024-09-11 14:54:07 -04:00
rr-bw 234191e809
fill out desktop template and submit() 2024-09-11 11:48:18 -07:00
Shane Melton 8e4dab5eba
[PM-10996] Remove restrict-provider-access feature flag (#10977) 2024-09-11 10:45:23 -07:00
rr-bw b0f4ac1915
add clarifying comment regarding secondary content 2024-09-11 10:38:25 -07:00
rr-bw e3219d2766
handle desktop ngOnDestroy() 2024-09-11 10:33:03 -07:00
rr-bw 167b246112
add continue() method 2024-09-11 10:30:09 -07:00
rr-bw c597b92dee
setup desktopOnInit() 2024-09-11 10:24:04 -07:00
rr-bw 8c786622e3
minor refactor to use destructuring 2024-09-11 10:12:07 -07:00
rr-bw 0f62f07cf2
add clarifying comment to handleAuthResult() 2024-09-11 10:08:11 -07:00
rr-bw 04ca09145b
minor formatting for consistency 2024-09-10 17:00:06 -07:00
rr-bw e2434ff397
create a LoginSecondaryContentComponent for AnonLayout use 2024-09-10 16:26:54 -07:00
rr-bw b64552f183
refactor handlCaptchaRequired() 2024-09-10 15:15:56 -07:00
rr-bw ff53feeed5
add comment to revisit ngOnInit logic 2024-09-10 14:55:24 -07:00
rr-bw d76f4832e6
refactor webOnInit 2024-09-10 14:51:42 -07:00
Jared Snider 546115876f
Move extension refresh redirect util function to libs so other clients can use it (#10979) 2024-09-10 17:47:16 -04:00
rr-bw 08261842e0
refactor to handleAuthResult() method 2024-09-10 14:25:27 -07:00
rr-bw 9588148e48
remove toast error on invalid form for Browser/Desktop 2024-09-10 14:22:51 -07:00
rr-bw d098ee0cbc
refactor submit logic further to use if statements with returns instead of if...else if...else 2024-09-10 14:10:02 -07:00
rr-bw feb16c3fd2
refactor submit logic 2024-09-10 13:27:40 -07:00
rr-bw 7d8886e4dc
refactor captcha methods and add return types 2024-09-10 12:58:24 -07:00
rr-bw 40e2cb5747
refactor handleMigrateEncryptionKey() 2024-09-10 12:37:22 -07:00
rr-bw b997b6024e
rename 'response' to 'authResult' 2024-09-10 12:08:32 -07:00
✨ Audrey ✨ 4128b18b27
[PM-8279] password generation component (#10805) 2024-09-10 12:43:33 -04:00
rr-bw e8e5ec23f9
add template for desktop first UI state: email entry 2024-09-09 16:58:37 -07:00
rr-bw b564ff4ca5
Merge branch 'main' into auth/pm-8111/browser-refresh-login-component 2024-09-09 15:28:03 -07:00
rr-bw 4d1ab66453
setup desktop router 2024-09-09 15:15:57 -07:00
rr-bw 12967b0c17
h3 typography on small screens, h2 on medium-large screens (#10939) 2024-09-09 15:12:31 -07:00
rr-bw bdd6f9f6df
handle browser routing and basic browser template 2024-09-09 14:45:55 -07:00
Nick Krantz 4e7399ed98
[PM-9733] Custom Vault Timeout (#10515)
* handle timeout changes that are predefined string values

- Passing a string to `Math.max` will cause a NaN to be set.

* type form instance so TypeScript is more aware of the form values
2024-09-09 16:36:23 -05:00
rr-bw 81a623d998
handle browser ngOnInit 2024-09-09 13:19:02 -07:00
rr-bw 3c68fb0876
handle browser/desktop syncService 2024-09-09 13:05:46 -07:00
rr-bw 3636c72741
handle post-login routing on Browser/Desktop 2024-09-09 12:29:01 -07:00
rr-bw 00a29b3795
handle master password input focus 2024-09-09 09:54:31 -07:00
Nick Krantz c161873ce5
reset min-width to zero to override flex from setting min-width to auto (#10936) 2024-09-09 09:38:32 -05:00
Jared Snider e954621761
Auth/PM-10684 - Fix CLI asking for MP even if session key provided as command option (#10917)
* PM-10684 - ServiceContainer - Add better docs

* PM-10684 - UserAutoUnlockKeyService - setUserKeyInMemoryIfAutoUserKeySet - refactor method to return a bool instead of nothing so users can know if a user key was retrieved & set without another call.

* PM-10684 - Remove async code ( Program.ts) responsible for setting the auto user key from the session option handler (event emitter which fires when a user passes --session <sessionKey> to a command). Returning this to synchronous execution prevents a race condition between the setting of the user key and the command executing the exitIfLocked logic in the base-program which would check if the user key had been set to determine if the command should be allowed to execute or if the user was locked. When running a loop from a script, the command would often trigger the exitIfLocked before the auto user key could be set in state from the option:session session.

* PM-10684 - Clean up missed item per PR feedback
2024-09-09 10:03:30 -04:00
Conner Turnbull 60e9969017
[AC-2568] Split billing history calls to separately call for invoices and transactions. Added paging buttons (#10697)
* Split billing history calls to separately call for invoices and transactions. Added paging button

* Added missing button types
2024-09-09 09:39:02 -04:00
Jordan Aasen 9e45e32c7d
[PM-8277] - Password generator history component (#10921) 2024-09-09 09:25:41 -04:00
Cesar Gonzalez 2827d338ee
[PM-11419] Fix issues encountered with inline menu passkeys (#10892)
* [PM-11419] Login items do not display after adding passkey

* [PM-11419] Login items do not display after adding passkey

* [PM-11419] Incorporating fixes for deleting a cipher from the inline menu as well as authenticating using passkeys

* [PM-11419] Fixing an issue where master password reprompt is ignored for a set passkey cipher

* [PM-11419] Fixing an issue where saving a passkey does not trigger a clearing of cached cipher values

* [PM-11419] Refactoring implementation

* [PM-11419] Ensuring that passkeys must be enabled in order for ciphers to appear

* [PM-11419] Adding an abort event from the active request manager

* [PM-11419] Adding an abort event from the active request manager

* [PM-11419] Working through jest tests within implementation

* [PM-11419] Fixing jest tests within Fido2ClientService and Fido2AuthenticatorService

* [PM-11419] Adding jest tests for added logic within OverlayBackground

* [PM-11419] Adding jest tests for added logic within OverlayBackground

* [PM-11419] Reworking how we handle assuming user presence when master password reprompt is required

* [PM-11419] Reworking how we handle assuming user presence when master password reprompt is required

* [PM-11419] Reworking how we handle assuming user presence when master password reprompt is required

* [PM-11419] Refactoring implementation

* [PM-11419] Incorporating suggestion for reporting failed passkey authentication from the inline menu

* [PM-11419] Reworking positioning of the abort controller that informs the background script of an error

* [PM-11419] Scoping down the behavior surrounding master password reprompt a bit more tightly

* [PM-11419] Reworking how we handle reacting to active fido2 requests to avoid ambiguity

* [PM-11419] Reworking how we handle reacting to active fido2 requests to avoid ambiguity

* [PM-11419] Adjusting implementation to ensure we clear any active requests when the passkeys setting is modified
2024-09-09 08:44:08 -04:00
Alec Rippberger ee738ac36a
Update "linked" to use "cfTypeLinked" message. (#10841)
Co-authored-by: Shane Melton <smelton@bitwarden.com>
2024-09-07 21:20:39 -05:00
rr-bw 70d15fb4d2
update defaultOnInit() 2024-09-07 13:36:08 -07:00
rr-bw e8c4217bec
create a defaultOnInit() 2024-09-07 13:06:45 -07:00
rr-bw 4f893e0769
minor updates to comments for clarity 2024-09-07 13:03:15 -07:00
rr-bw e190ca48c7
incorporate loginEmailService changes 2024-09-07 12:53:48 -07:00
rr-bw d279ae499d
Merge branch 'main' into auth/pm-8111/browser-refresh-login-component 2024-09-07 12:45:18 -07:00
Jonathan Prusik 9881c7842b
[PM-10418] Bugfix - Expiration date on cards does not always autofill the correct format (#10705)
* add branching logic for alternative card expiration autofill strategy

* simplify logic and fix some pattern-matching bugs

* add EnableNewCardCombinedExpiryAutofill feature flag

* update default format for card expiry date and update tests

* review reccs
2024-09-06 11:24:04 -04:00
Alex Morask 2aa4b07d68
Move braintree.service and stripe.service from jslib-services.module into web (#10923) 2024-09-06 09:51:00 -04:00
Nick Krantz fb1a294c97
update aria label of the character count toggle (#10915) 2024-09-06 08:49:46 -05:00
Justin Baur 92e71d9252
[PM-11661]Add New Reseed - Fill Buffer Behind Feature Flag (#10905)
* Add New Reseed - Fill Buffer Behind Feature Flag

* Add Tests

* Lint
2024-09-06 09:48:27 -04:00
Todd Martin 03b3345bf6
[PM-11619] Replace client-side feature flag with server-side flag (#10709) 2024-09-06 09:25:15 -04:00
Todd Martin f0fe397307
Changed temp password reset phrase names to match translations (#10756) 2024-09-06 09:20:41 -04:00
rr-bw d74561d374
merge main, fix conflicts 2024-09-05 16:53:32 -07:00
Victoria League 3f25b9bbfc
[CL-357] Remove border radius when displayed in web app (#10884) 2024-09-05 16:38:20 -04:00
Nick Krantz 7dcfaf8271
add title for attachment name (#10908)
- adds the ability for a user to see the attachment name while hovering over it
2024-09-05 14:41:39 -05:00
Justin Baur ef3b3c1cb5
Remove Comments (#10914) 2024-09-05 15:36:43 -04:00
Justin Baur 3bbc2cc691
Change AppIdService to Use Storage Directly (#10835) 2024-09-05 14:44:19 -04:00
Jared Snider 352ab29665
Auth/PM-11635 - Extension Registration Bugfix - Unable to login after account creation issue (#10896)
* PM-11635 - Refactor Base Login Component NgOnInit to properly connect the loading of email settings from state to the processing of query params. If an email is not passed via query params (like registration / normal login), then we will try to load the email from state.

* PM-11635 - Extension login component - call parent ngOnInit as it is responsible for processing / setting email from either query params or state. The addition of the child ngOnInit prevented the parent component ngOnInit from executing.
2024-09-05 13:55:30 -04:00
Daniel James Smith 74d510332d
[PM-9884] Create empty send add/edit page for browser (#10155)
* Move SendV2component into send-v2 subFolder

* Create SendFormContainer and related services

* Add initial SendFormComponent which uses the SendFormContainer

* Remove AdditionalOptionsSectionComponent which will be added with a future PR

* Add libs/tools/send to root tsconfig

* Register libs/tools/send/send-ui with root jest.config.js

* Register libs/tools/send/send-ui with root tailwind.config.js

* Create empty Send add edit page

- Introduces conditional routing based on extension refresh feature flag
- After selecting a Send type via the New button navigate to the new send-add-edit page and build a SendFormConfig

* Fix service injection on DefaultSendFormService

* Rename setHeader into getHeaderText, make it private and add documentation

* Set radix/base to 10 for parseInt

* Add documentation

* Rename local variable

* Removed unneeded loading state

* Remove unused originalSendId

* Run prettier

* Add link to edit an existing send

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2024-09-05 17:46:03 +02:00
Jordan Aasen 7cfd6577ac
fix typography to match design (#10888) 2024-09-05 13:26:12 +02:00
Jordan Aasen a21e4afba8
[PM-11439] - add padding to import file input (#10870)
* add padding to import file input

* favor padding over margin

* reduce padding on import input button
2024-09-05 13:24:59 +02:00