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

243 Commits

Author SHA1 Message Date
Alec Rippberger
ea685728ca Add back button. 2024-10-10 10:58:01 -05:00
Alec Rippberger
90a24cba67 Merge branch 'main' into auth/pm-8111/browser-refresh-login-component 2024-10-10 10:07:39 -05:00
Alec Rippberger
982da467b4 Directly set clientType in individual login component services. 2024-10-09 18:54:53 -05:00
Alec Rippberger
6d980bfadd Add await to saveEmailSettings function. 2024-10-09 14:32:50 -05:00
Alec Rippberger
47ce605e77 Restructure handAuthResult to ensure we redirect to vault. 2024-10-09 14:01:01 -05:00
Alec Rippberger
6e337e1e7d Use click event to trigger goToHint. 2024-10-09 13:02:59 -05:00
Alec Rippberger
57044a6855 Validate email on enter keypress. 2024-10-09 12:51:40 -05:00
Alec Rippberger
8975b60e1e Ensure Passkey login available for web and desktop. 2024-10-09 11:22:17 -05:00
Alec Rippberger
5aec3e8210 Update "continue" button from "submit" to "button" type. 2024-10-08 21:38:26 -05:00
Alec Rippberger
2bb89a42ba Ensure Login with Passkey button is shown by setting clientType. 2024-10-08 21:27:32 -05:00
Alec Rippberger
994e097eff Address PR feedback: use strict comparison. 2024-10-08 18:33:52 -05:00
Jared Snider
18522e5165 PM-13252 - AnonLayout - Style tweaks to fix scrollbars on browser + add typography to footer content + misc minor refactors. (#11449) 2024-10-08 14:51:08 -04:00
Alec Rippberger
f6d59dcc5c Adjust styles for password hint link. 2024-10-03 21:54:39 -05:00
Alec Rippberger
9308a472c7 Merge branch 'main' into auth/pm-8111/browser-refresh-login-component 2024-10-03 09:31:54 -05:00
Jared Snider
4bd2e158c0 PM-12694 - Fix AnonLayoutStorybook to add router module and hideLogo toggling support (#11368) 2024-10-02 16:17:20 -04:00
Alec Rippberger
c0d37bcc62 Merge branch 'main' into auth/pm-8111/browser-refresh-login-component 2024-10-02 09:45:07 -05:00
Alec Rippberger
acd47c2b79 [PM-12694] Modify logo on AnonLayout to direct to base route on click (#11263)
* Add "back" functionality for Desktop.

* Return user to email field when logo is clicked in Web.

* Update function name.

* Move hideLogo to anchor wrapper.

* Use "/" route for logo back link.
2024-10-02 08:00:37 -05:00
Alec Rippberger
f8f8bb5386 Add comment to explain call to setLoginEmail. 2024-10-02 07:41:18 -05:00
Alec Rippberger
bdc988cc12 Cleanup formatting and remove unused provider. 2024-10-02 07:32:40 -05:00
Jared Snider
9ff1db7573 Auth/PM-9449 - UI Refresh + Client component consolidation into new LockV2 Component (#10451)
* PM-9449 - Init stub of new lock comp

* PM-9449 - (1) Add new lock screen title to all clients (2) Add to temp web routing module config

* PM-9449 - LockV2Comp - Building now with web HTML

* PM-9449 - Libs/Auth LockComp - bring in all desktop ts code; WIP, need to stand up LockCompService to facilitate ipc communication.

* PM-9449 - Create LockComponentService for facilitating client logic; potentially will decompose later.

* PM-9449 - Add extension lock comp service.

* PM-9449 - Libs/auth LockComp - bring in browser extension logic

* PM-9449 - Libs/auth LockComp html start

* PM-9449 - Libs/Auth LockComp - (1) Remove unused dep (2) Update setEmailAsPageSubtitle to work.

* PM-9449 - Add getBiometricsError to lock comp service for extension.

* PM-9449 - LockComp - (1) Save off client type as public comp var (2) Rename biometricLock as biometricLockSet

* PM-9449 - Work on lock comp service getAvailableUnlockOptions

* PM-9449 - WIP libs/auth LockComp

* PM-9449 - (1) Remove default lock comp svc (2) Add web lock comp svc.

* PM-9449 - UnlockOptions - replace incorrect type

* PM-9449 - DesktopLockComponentService -get most of observable based getAvailableUnlockOptions$ logic in place.

* PM-9449 - LockCompSvc - getAvailableUnlockOptions in place for all clients.

* PM-9449 - Add getBiometricsUnlockBtnText to LockCompSvc and put TODO for wiring it up later

* PM-9449 - Lock Comp - Replace all manual bools with unlock options.

* PM-9449 - Desktop Lock Comp Svc - adjust spacing

* PM-9449 - LockCompSvc - remove biometricsEnabled method

* PM-9449 - LockComp - Clean up commented out code

* PM-9449 - LockComp - webVaultHostname --> envHostName

* PM-9449 - Fix lock comp svc deps

* PM-9449 - LockComp - HTML progress

* PM-9449 - LockComp cleanup

* PM-9449 - Web Routing Module - wire up lock vs lockv2 using extension swap

* PM-9449 - Wire up loading state

* PM-9449 - LockComp - start wiring up listenForActiveUnlockOptionChanges logic with reactivity

* PM-9449 - Update desktop & extension lock comp service to use new biometrics service vs platform utils for biometrics information.

* PM-9449 - LockV2 - Swap platform util usage with toast svc

* PM-9449 - LockV2Comp - Bring over user id logic from PM-8933

* PM-9449 - LockV2Comp - Adjust everything to use activeAccount.id.

* PM-9449 - LockV2Comp - Progress on wiring up unlock option reactive stream.

* PM-9449 - LockComp ts - some refactoring and minor progress.

* PM-9449 - LockComp HTML - refactoring based on new idea to keep unlock options as separate as possible.

* PM-9449 - Add PIN translation to web

* PM-9449 - (1) Lock HTML refactor to make as independent verticals as possible (2) Refactor Lock ts (3) LockSvc - replace type with enum.

* PM-9449 - LockV2Comp - remove hardcoded await.

* PM-9449 - LockComp HTML - add todo

* PM-9449 - Web - Routing module - cleanup commented out stuff

* PM-9449 - LockV2Comp - Wire up biometrics + mild refactor.

* PM-9449 - Desktop - Wire up lockV2 redirection

* PM-9449 - LockV2 - Desktop - don't focus until unlock opts defined.

* PM-9449 - Fix accidental check in

* PM-9449 - LockV2 - loading state depends on unlock opts

* PM-9449 - LockV2 comp - remove unnecessary hr

* PM-9449 - Migrate  "yourVaultIsLockedV2" translation to desktop & browser.

* PM-9449 - LockV2 - Layout tweaks for biometrics

* PM-9449 - LockV2 - Biometric btn text

* PM-9449 - LockV2 - Wire up biometrics loading / disable state + remove unnecessary conditions around biometricsUnlockBtnText

* PM-9449 - DesktopLockSvc - Per discussion with Bernd, remove interval polling and just check once for biometric support and availability.

* PM-9449 - AuthGuard - Add todo to remove promptBiometric

* PM-9449 - LockV2 - Refactor primary and desktop init logic + misc clean up

* PM-9449 - LockV2 - Reorder init methods

* PM-9449 - LockV2 - Per discussion with Product, deprecate windows biometric settings update warning

* PM-9449 - Add TODO per discussion with Justin and remove TODO

* PM-9449 - LockV2 - Restore hide password on desktop window hidden functionality.

* PM-9449 - Clean up accomplished todo

* PM-9449 - LockV2 - Refactor func name.

* PM-9449 - LockV2 Comp - (1) TODO cleanup (2) Add browser logic to handleBiometricsUnlockEnabled

* PM-9449 - LockCompSvc changes - (1) Observability for isFido2Session (2) Adjust errors and returns per discussion with Justin

* PM-9449 - Per product, no longer need to support special fido2 case on extension.

* PM-9449 - LockCompSvc - add getPreviousUrl support

* PM-9449 - LockV2 - Continued ts cleanup

* PM-9449 - LockV2Comp - clean up unused props

* PM-9449 - LockV2Comp - Rename response to masterPasswordVerificationResponse

* PM-9449 - LockV2 - Remove unused formPromise prop

* PM-9449 - Add missing translations + update desktop to showReadonlyHostName

* PM-9449 - LockV2 - cleanup TODO

* PM-9449 - LockV2 - more cleanup

* PM-9449 - Desktop Routing Module - only allow LockV2 access if extension refresh flag is enabled.

* PM-9449 - Extension - AppRoutingModule - Add extension redirect + new lockV2 route.

* PM-9449 - Extension - AppRoutingModule - Add lockV2 to the ExtensionAnonLayoutWrapperComponent intead of the regular one.

* PM-9449 - Extension - CurrentAccountComp - add null checks as anon layout components don't have a state today. This prevents the account switcher from working on the new lockV2 comp.

* PM-9449 - Extension AppRoutingModule - LockV2 should use ExtensionAnonLayoutWrapperData

* PM-9449 - LockComp - BiometricUnlock - cancelling is a valid action.

* PM-9449 - LockV2 - Biometric autoprompt cleanup

* PM-9449 - LockV2 - (1) Add TODO for KM team (2) Fix submit logic.

* PM-9449 - Tweak TODO to add task #

* PM-9449 - Test WebLockComponentService

* PM-9449 - ExtensionLockComponentService tested

* PM-9449 - Tweak extension lock comp svc test

* PM-9449 - DesktopLockComponentService tested

* PM-9449 - Add task # to TODO

* PM-9449 - Update apps/browser/src/services/extension-lock-component.service.ts per PR feedback

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>

* PM-9449 - Per PR feedback, replace from with defer for better reactive execution of promise based functions.

* PM-9449 - Per PR feedback replace enum with type.

* PM-9449 - Fix imports and tests due to key management file moves.

* PM-9449 - Another test file import fix

---------

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
2024-10-01 16:06:18 -04:00
Alec Rippberger
2d5f4dfb70 Convert refactoring todo-rr-bw to standard todos. 2024-10-01 14:40:32 -05:00
Alec Rippberger
f42a391b6f Confirmed inline form errors working and removing todo comments. 2024-10-01 14:36:51 -05:00
Alec Rippberger
4f11c2c914 Add styles missing from Browser to Create Account link. 2024-10-01 14:17:13 -05:00
Alec Rippberger
ca0520cea0 Add isLoginWithPasskeySupported function to reduce client type checking in template. 2024-10-01 13:02:39 -05:00
Alec Rippberger
a104a9250d Remove specific client services. 2024-10-01 12:19:22 -05:00
Bernd Schoolmann
dafe795854 Move asymmetric crypto functions out of crypto service (#10903) 2024-10-01 17:47:41 +02:00
Jared Snider
86a10f21b3 PM-8111 - Two TODO cleanups 2024-09-30 16:08:50 -04:00
Jared Snider
8469e3541a PM-8111 - (1) Cleanup DefaultLoginComponentService (2) Sso Connector now checks client id property instead of reading it from state 2024-09-30 16:04:04 -04:00
Jared Snider
d1a0c2f5f5 PM-8111 - New Login Comp + Login Comp Svc - (1) Refactor naming and returns of getShowPasswordlessFlag to isLoginViaAuthRequestSupported (2) Replace showPasswordless with better composed variable names. 2024-09-30 15:30:31 -04:00
Alec Rippberger
3140be27a6 Merge branch 'main' into auth/pm-8111/browser-refresh-login-component 2024-09-30 12:58:04 -05:00
Alec Rippberger
30af195b9d Remove comment re. passing email to registration. 2024-09-27 12:19:05 -05:00
Alec Rippberger
bf8312da1c Populate email on registration start form. 2024-09-27 10:48:27 -05:00
Jared Snider
eb7eb614f5 PM-11962 - InputPasswordComp - add weak password checking (#11252) 2024-09-26 18:00:03 -04:00
Alec Rippberger
a1b921691a Break up LoginComponent into client-specific services. 2024-09-25 22:07:37 -05:00
Alec Rippberger
7f14851147 Consolidate login templates. 2024-09-25 16:49:27 -05:00
Alec Rippberger
1206017b57 Fix client navigation after login. 2024-09-25 16:47:17 -05:00
Alec Rippberger
7767545a50 Remove unnecessary navigation. 2024-09-25 16:20:13 -05:00
Alec Rippberger
3187a3300e Consolidate clearing loginEmailService values and routing 2024-09-25 15:44:50 -05:00
Alec Rippberger
e0eff02a42 Remove back button todo. 2024-09-25 11:29:28 -05:00
Alec Rippberger
22eb2aac97 Merge branch 'main' into auth/pm-8111/browser-refresh-login-component 2024-09-24 21:58:22 -05:00
Alec Rippberger
74767b02b5 Use factory function to provide LoginEmailService. 2024-09-24 21:45:22 -05:00
Alec Rippberger
d9f930d7cb Prefill email field when "create account" is clicked. 2024-09-24 16:35:43 -05:00
Alec Rippberger
9bb84094ae Fix comment typo. 2024-09-24 12:32:56 -05:00
Bernd Schoolmann
d92b2cbea2 [PM-11477] Remove deprecated cryptoservice functions (#10854)
* Remove deprecated cryptoservice functions

* Use getUserkeyWithLegacySupport to get userkey

* Fix tests

* Fix tests

* Fix tests

* Remove unused cryptoservice instances

* Fix build

* Remove unused apiService in constructor

* Fix encryption

* Ensure passed in key is used if present

* Fix sends and folders

* Fix tests

* Remove logged key

* Fix import for account restricted keys
2024-09-24 11:28:33 +02:00
Alec Rippberger
c37f726f7d Prevent email address validation on blur. 2024-09-23 22:53:58 -05:00
Alec Rippberger
54f0c0a46a Add vault icon to anon layout. 2024-09-23 18:49:53 -05:00
Jared Snider
e1e772b0a2 PM-12365 - AnonLayoutWrapperComp - When you use the AnonLayoutWrapperDataService to set data in the AnonLayoutWrapperComponent, I’m seeing an ExpressionChangedAfterItHasBeenCheckedError shown in the console quite often. We should update the wrapper component to fire change detection if the AnonLayoutWrapperDataService receives new information. (#11136) 2024-09-19 13:39:16 -04:00
Justin Baur
1ebef296b9 [PM-12024] Move Lock All To Happen in Background (#11047)
* Move Lock All To Happen in Background

- Make it done serially
- Have the promise only resolve once it's complete

* Unlock Active Account Last

* Add Tests

* Update Comment
2024-09-16 16:08:03 -04:00
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
rr-bw
6d1d02a264 rename loginService prop to loginComponentService 2024-09-14 13:52:08 -07:00