Jared Snider
bcf9099229
PM-7392 - TokenSvc - Replace messageSender with logout callback per PR feedback.
2024-05-08 19:40:38 -04:00
Jared Snider
d88766a028
PM-7392 - Revert ToastService changes
2024-05-08 19:23:50 -04:00
Jared Snider
7aae92e78e
PM-7392 - More replacements of expired with logoutReason
2024-05-08 17:25:57 -04:00
Jared Snider
18d84bd429
PM-7392 - Logout callback should simply pass along the LogoutReason instead of handling it - let each client's message listener handle it.
2024-05-08 17:24:18 -04:00
Jared Snider
706935098b
PM-7392 - WIP - Enhancing logout callback to consider the logout reason + move show toast logic into logout callback
2024-05-07 20:37:39 -04:00
Jared Snider
d0782554f2
Merge branch 'main' into auth/pm-7392/token-service-add-secure-storage-fallback
2024-05-07 19:44:16 -04:00
Jared Snider
ec8f33628c
PM-7392 - Move Logout reason custom type to auth/common
2024-05-07 18:41:31 -04:00
Jared Snider
2f414d6f72
PM-7392 - ToastService - we need to await the activeToast.onHidden observable so return the activeToast from the showToast.
2024-05-07 18:23:49 -04:00
Jared Snider
0ef0bd3f1d
PM-7392 - Rename file to be type from enum
2024-05-07 16:30:23 -04:00
Jared Snider
4d8d43bfb0
PM-7392 - Per PR feedback, adjust enc string changes and tests.
2024-05-07 16:21:10 -04:00
Jared Snider
ed6f2e45d3
PM-7392 - ApiService - Stop using messaging to trigger toast to let user know about refresh access token errors; replace with client specific callback logic.
...
Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
2024-05-07 15:59:04 -04:00
Shane Melton
3a71322510
[AC-1707] Restrict provider access to items ( #8265 )
...
* [AC-1707] Add feature flag
* [AC-1707] Prevent loading ciphers for provider users in the org vault when the feature flag is enabled
* [AC-1707] Ensure new canEditAllCiphers logic only applies to organizations that have FC enabled
* [AC-1707] Update editAllCiphers helper to check for restrictProviderAccess feature flag
* [AC-1707] Remove un-used vaultFilterComponent reference
* [AC-1707] Hide vault filter for providers
* [AC-1707] Add search to vault header for provider users
* [AC-1707] Hide New Item button for Providers when restrict provider access feature flag is enabled
* [AC-1707] Remove leftover debug statement
* [AC-1707] Update canEditAllCiphers references to consider the restrictProviderAccessFlag
* [AC-1707] Fix collections component changes from main
* [AC-1707] Fix some feature flag issues from merge with main
* [AC-1707] Avoid 'readonly' collection dialog for providers
* [AC-1707] Fix broken Browser component
* [AC-1707] Fix broken Desktop component
* [AC-1707] Add restrict provider flag to add access badge logic
2024-05-07 12:35:28 -07:00
Jared Snider
26eb13280f
PM-7392 - Swap logout reason from enum to type.
2024-05-07 14:35:52 -04:00
Jared Snider
28d2a8797c
PM-7392 - Per PR feedback, move error handling toast responsibility to client specific app component logic reached via messaging.
2024-05-07 13:57:51 -04:00
Matt Gibson
de0852431a
[PM-7917] Remove session sync ( #9024 )
...
* Remove session sync and MemoryStorageService
* Fix merge
2024-05-07 13:25:49 -04:00
Shane Melton
c241aba025
[AC-2555] Cipher collections dialog merge fixes ( #9036 )
...
* [AC-2555] Fix missing feature flags in CollectionsComponent
* [AC-2555] Do not filter collections when opening the cipher collections dialog in the org vault
2024-05-07 10:00:47 -07:00
Jared Snider
935c97fbb6
PM-7392 - ApiService - refreshIdentityToken - log error before swallowing it so we have a record of it.
2024-05-07 12:57:21 -04:00
Jared Snider
923c6cf36a
PM-7392 - Per PR feedback, adjust all test names to match naming convention.
2024-05-07 11:43:16 -04:00
Jason Ng
be51f1934a
[AC-1121] Collections Add Access filter and badge ( #8404 )
...
* added bit toggle group for add access filter to AC collections
2024-05-07 11:02:50 -04:00
Jared Snider
20bc6d7f71
PM-7392 - Per PR feedback, move tests to existing describe.
2024-05-07 10:52:06 -04:00
Jared Snider
bee849d47c
PM-7392 - Per PR feedback, remove links.
2024-05-07 10:44:27 -04:00
Jared Snider
b5508ec149
PM-7392 - Per PR feedback, update incorrect comment from 3 releases to 3 months.
2024-05-07 10:43:38 -04:00
Jared Snider
5e2cb4855a
PM-7392 - Per PR feedback, add missing tests (thank you Jake for writing these!)
...
Co-authored-by: Jake Fink <jfink@bitwarden.com>
2024-05-07 10:25:55 -04:00
rr-bw
0fb352d8ed
[PM-7343] AnonLayoutComponent Implementation Groundwork ( #8585 )
...
* test implementation
* move files
* adjust import and sample router comments
* add storybook docs to anon-layout
* rename to AnonLayoutWrapperComponent
* update storybook docs
* remove references to CL and replace with 'Auth-owned'
* move AnonLayoutWrapperComponent to libs
* add pageTitle input
* add subTitle input
* translate page title/subtitle, and refactor how icon is added
* update tailwind.config and component styles
* adjust spacing between primary and secondary content
* move switch statement to wrapper
* move icon to router file
* update storybook documentation
* fix storybook text color in normal code blocks
* remove sample route
* move wrapper component back to web
* remove sample route
* update storybook docs
2024-05-06 18:34:40 -07:00
Jared Snider
1acb5d0aa5
PM-7392 - If the access token cannot be refreshed due to a missing refresh token or API keys, then surface an error to the user and log it so it isn't a silent failure + we get a log.
2024-05-06 21:06:01 -04:00
Jared Snider
843e045b44
PM-7392 - Fix SetRefreshToken case where a null input would incorrectly trigger a fallback to disk.
2024-05-06 20:19:41 -04:00
Jared Snider
11f7024e8f
PM-7392 - API service - update doAuthRefresh error to clarify which token cannot be refreshed.
2024-05-06 16:46:34 -04:00
Jared Snider
f7a08925f8
PM-7392 - Per PR feedback and discussion, do not log the user out if hte refresh token cannot be found. This will allow users to continue to use the app until their access token expires and we will error on trying to refresh it. The app will then still work on a fresh login for 55 min.
2024-05-06 16:45:38 -04:00
Jonathan Prusik
6c21223466
[PM-7662] Suppress welcome window on install when extension is in dev mode ( #8864 )
...
* suppress welcome window on install when extension is in dev mode
* use platformUtilsService.isDev instead of process.env.ENV
* use devFlags.skipWelcomeOnInstall instead of platformUtilsService.isDev
* update old dev_flags casing in base configs
2024-05-06 15:25:41 -04:00
cyprain-okeke
425c7914b0
[AC-2558] Provider Admin still sees manage billing options - not the provided image ( #9048 )
...
* Fix the issue of provider admin not seeing the image
* Resolve the case and ternary operator comment
2024-05-06 20:21:11 +01:00
Shane Melton
ff3021129e
[PM-6827] Browser Extension Refresh - Tabs Routing ( #9004 )
...
* [PM-6827] Add componentRouteSwap util function
* [PM-6827] Add extension-refresh feature flag
* [PM-6827] Add extension-refresh route swap utils
* [PM-6827] Add the TabsV2 component
* [PM-6827] Add the TabsV2 to routing module
* [PM-6827] Fix route prefixes in popup-tab-navigation component
2024-05-06 09:14:47 -07:00
Jared Snider
ec01624f81
Merge remote-tracking branch 'origin/main' into auth/pm-7392/token-service-add-secure-storage-fallback + app.component merge conflict resolution
2024-05-06 11:19:11 -04:00
Jake Fink
09ff12fc02
[PM-7919] Add more tde logging ( #9035 )
...
* adds additional logging to TDE service
* remove base catch swallowing errors
* add dependency to cli
* fix comment
2024-05-06 11:15:33 -04:00
Will Martin
76cc0f43aa
[CL-280] truncate overflow text in bit-item ( #8992 )
2024-05-06 10:29:23 -04:00
Justin Baur
869fa29da6
Encourage The Use of UserId in CryptoService ( #9033 )
2024-05-04 02:04:56 -04:00
Justin Baur
e4ef7d362e
[PM-7838] [PM-7864] Ensure AuthStatus Changes Before Exiting ( #9018 )
...
* Ensure AuthStatus Changes Before Exiting
* Do Not Display Account Without Name Or Email
* Fix Environment Selectors
* Add AccountService.clean to Web
2024-05-03 16:43:42 -04:00
Jared Snider
1b372b4cf7
PM-7392 - TokenSvc - (1) Remove test code (2) Refactor decryptAccessToken method to accept access token key and error on failure to pass required decryption key to method.
2024-05-03 15:28:26 -04:00
Jared Snider
457e7a4819
Merge branch 'main' into auth/pm-7392/token-service-add-secure-storage-fallback
2024-05-03 14:56:26 -04:00
Justin Baur
b46766affd
[PM-7907] No more optional `privateKey` ( #9029 )
...
* Update Emergency Access To Get Their Own Key
* Migrate Organization Keys To Get Their Own Key
* Remove Optional Parameters
* Update Abstraction Parameter Name to Match Implementation
* Add @throws Doc
2024-05-03 14:30:45 -04:00
Jared Snider
c2295e25ab
PM-7392 - TokenSvc - update to use EncString instead of EncryptSvc + fix tests.
2024-05-03 14:26:59 -04:00
Matt Gibson
a4d5717283
Use account service for account enumeration. ( #9023 )
2024-05-03 14:24:30 -04:00
Jared Snider
ee6b1a35ec
PM-7392 - Remove encrypt service method
...
Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
2024-05-03 14:10:52 -04:00
Jared Snider
8c8c44430d
PM-7392 - Enc String - (1) Add handling for Nan in parseEncryptedString (2) Added null handling to isSerializedEncString. (3) Plan to remove encrypt service implementation
...
Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
2024-05-03 14:07:58 -04:00
Alex Morask
0b02d2ee1c
[AC-1970] Add billing navigation group to provider layout ( #8941 )
...
* Add billing navigation item to provider layout with empty subscription page behind FF.
* Fixing tests
* Missed build error
* Addison's feedback
* Remove unused function
* Missed one get$ conversion
* Fixed background failure
2024-05-03 12:36:10 -04:00
Jake Fink
4c860e12d7
fix init account validation ( #9034 )
2024-05-03 12:23:12 -04:00
Jake Fink
69ed6ce1f5
[PM-6727] Part 1: pass userId in login strategies ( #9030 )
...
* add validation to initAccount
* pass userId to setMasterKey
* fix key connector tests
2024-05-03 11:54:29 -04:00
Jared Snider
e9d2f3fec9
PM-7392 - Don't re-invent the wheel and simply use existing isSerializedEncString static method.
2024-05-03 11:31:42 -04:00
Jared Snider
1db1728bd2
PM-7392 - EncryptSvc - test new stringIsEncString method
2024-05-03 11:09:33 -04:00
Jared Snider
87c8520d09
PM-7392 - TokenSvc tests - getAccessToken - all new scenarios tested
2024-05-02 20:19:08 -04:00
Jared Snider
e6e017c61e
PM-7392 - TokenSvc - getAccessToken - if secure storage errors add error to log.
2024-05-02 20:16:52 -04:00