Commit Graph

14769 Commits

Author SHA1 Message Date
Matt Gibson 34ab7015e0
Update libs/common/src/state-migrations/migrate.ts
Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
2024-04-25 15:29:01 -04:00
Matt Gibson 95d6b6b0f0
Merge remote-tracking branch 'origin/main' into auth/pm-6688/account-service-as-account-source 2024-04-25 15:17:36 -04:00
Matt Gibson e516eec200
Reintroduce null object remove rerouting (#8920)
* Reintroduce null object remove rerouting

* Test remove redirect
2024-04-25 14:55:45 -04:00
Ike 1e4158fd87
[PM-5735] Create kdf Service (#8715)
* key connector migration initial

* migrator complete

* fix dependencies

* finalized tests

* fix deps and sync main

* clean up definition file

* fixing tests

* fixed tests

* fixing CLI, Browser, Desktop builds

* fixed factory options

* reverting exports

* implemented UserKeyDefinition clearOn

* Initial Kdf Service Changes

* rename and account setting kdfconfig

* fixing tests and renaming migration

* fixed DI ordering for browser

* rename and fix DI

* Clean up Migrations

* fixing migrations

* begin data structure changes for kdf config

* Make KDF more type safe; co-author: jlf0dev

* fixing tests

* Fixed CLI login and comments

* set now accepts userId and test updates

---------

Co-authored-by: Jake Fink <jfink@bitwarden.com>
2024-04-25 11:26:01 -07:00
Matt Gibson d350ec76ed
Prefer descriptive, single-responsibility guards 2024-04-25 12:27:29 -04:00
Matt Gibson 929a209af2
Capitalize const values 2024-04-25 12:24:02 -04:00
Matt Gibson 701de74adf
Ensure accounts object has only valid userIds 2024-04-25 12:21:01 -04:00
Matt Gibson 1058025a46
Clarify name 2024-04-25 12:20:39 -04:00
Matt Gibson fd34fdec2c
Fixup component tests 2024-04-25 11:30:45 -04:00
Matt Gibson e913708939
Use helper methods internally 2024-04-25 11:04:02 -04:00
Matt Gibson 3be728b8d0
Improve comparator 2024-04-25 10:59:12 -04:00
Matt Gibson f310da3a72
Prefer constructor init 2024-04-25 10:49:09 -04:00
Matt Gibson 7d43c62c2e
Filter active account out of inactive accounts 2024-04-25 10:43:51 -04:00
Matt Gibson f8b788070a
Specify account to switch to 2024-04-25 10:43:27 -04:00
Matt Gibson 4aef033a81
Handle no users case for auth service statuses 2024-04-25 08:49:24 -04:00
Matt Gibson 92f85beb8d
Merge remote-tracking branch 'origin/main' into auth/pm-6688/account-service-as-account-source 2024-04-25 08:21:40 -04:00
Daniel James Smith dba910d0b9
Create and use `safeGetString()` instead of `instanceof` checks to determine type (#8906)
`safeGetString` takes a `string` or `EncString` and return the appropiate value based on it's type

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2024-04-24 23:41:35 +02:00
Justin Baur a6755f5f20
[PM-7687] Fix `reloadPopup` Recursion (#8902)
* Fix Message Sending Recursion

* Remove Change That Didn't Help

* Prefer `isExternalMessage` Guard

* Rollback Compare Change

---------

Co-authored-by: Cesar Gonzalez <cesar.a.gonzalezcs@gmail.com>
2024-04-24 16:54:16 -04:00
Jake Fink 3f4adff2c5
set auto key on command in cli (#8905) 2024-04-24 16:32:18 -04:00
Alex Morask a8ba48898b
Use new endpoint to determine SM standalone (#8904) 2024-04-24 16:29:00 -04:00
Will Martin e89c82defe
[CL-236] Card component (#8900)
* add card component; adjust section margin on small screens
2024-04-24 14:52:29 -04:00
Matt Gibson 4c41f3d198
If the account in unlocked on load of lock component, navigate away from lock screen 2024-04-24 14:36:46 -04:00
Matt Gibson f109728a7c
Fix dev compare errors
All stored values are serializable, the next step wasn't necessary and was erroring on some types that lack `toString`.
2024-04-24 14:36:19 -04:00
Matt Gibson 81693127f9
Be more precise about log out messaging 2024-04-24 14:35:29 -04:00
Jared Snider 5dc83cd34c
PM-6787 - Rename DeviceTrustCryptoService to DeviceTrustService (#8819) 2024-04-24 12:54:54 -04:00
Jared Snider a12c140792
Revert "Revert "Auth/PM-6689 - Migrate Security Stamp to Token Service and St…" (#8889)
This reverts commit 100b43dd8f.
2024-04-24 12:37:19 -04:00
Justin Baur 94fe9bd053
Remove `StateService` `useAccountCache` (#8882)
* Remove Account Cache from StateService

* Remove Extra Change

* Fix Desktop Build
2024-04-24 11:20:13 -04:00
Jake Fink b7957d6e28
set keypair before creating hub connection for admin requests (#8898) 2024-04-24 11:19:10 -04:00
Justin Baur 493b79b888
Only Run Migrations in True Background (#8548)
* Only Run Migrations in True Background

* Use `isPrivateMode`

* Use `popupOnlyContext`
2024-04-24 11:14:53 -04:00
watsondm 423d8c71b5
CLOUDOPS-1592 Remove artifacts R2 steps from desktop release workflows (#8897)
* CLOUDOPS-1592 Remove artifacts R2 steps from desktop release workflows

* CLOUDOPS-1592 Remove artifacts R2 steps from staged rollout workflow
2024-04-24 11:01:51 -04:00
Matt Gibson f8c0d8a99b
Merge remote-tracking branch 'origin/main' into auth/pm-6688/account-service-as-account-source 2024-04-24 06:52:13 -04:00
Matt Gibson 7d11fbcd52
Correct user activity sorting test 2024-04-24 06:51:34 -04:00
Matt Gibson 32b34d6014
Fix `npm run test:types` 2024-04-24 06:49:01 -04:00
Matt Gibson 855995a7ea
Prefer view observable to tons of async pipes 2024-04-24 06:32:14 -04:00
Matt Gibson 4a363631a7
Expand helper to handle new authenticated accounts location 2024-04-23 21:32:18 -04:00
Matt Gibson faa43c0957
Fix logging out non active user 2024-04-23 21:04:54 -04:00
Matt Gibson 31a8de1a51
Fix desktop app switch 2024-04-23 20:52:37 -04:00
Matt Gibson 2a0593e566
Fix builds 2024-04-23 18:57:55 -04:00
Matt Gibson b12c9eeab6
Fold account activity into account service 2024-04-23 18:53:59 -04:00
renovate[bot] 1520d95bbc
[deps] Auth: Update @types/node-ipc to v9.2.3 (#7248)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-23 15:21:25 -07:00
Matt Gibson 06c24acc5c
Remove authenticated accounts from state object 2024-04-23 17:32:23 -04:00
Matt Gibson ee0559028b
Move active and next active user to account service 2024-04-23 17:08:15 -04:00
Matt Gibson 16f03dbbcc
Add `AccountActivityService` that handles storing account last active data 2024-04-23 17:08:14 -04:00
Matt Gibson d651193d50
migrate or replicate account service data 2024-04-23 17:07:12 -04:00
Matt Gibson dff58167b8
Use last account activity from account service 2024-04-23 17:07:11 -04:00
Matt Gibson 403b2c8c0c
Add account activity tracking to account service 2024-04-23 17:07:11 -04:00
Matt Gibson e7678de6e7
Do not store account info on logged out accounts 2024-04-23 17:07:11 -04:00
Matt Gibson f67fc12f8a
Add email verified to account service 2024-04-23 17:07:11 -04:00
Matt Gibson 7cfa7d8d55
Remove state service active account Observables. 2024-04-23 17:07:10 -04:00
Matt Gibson 08399ea86e
Use account service to track accounts and active account 2024-04-23 17:07:10 -04:00