Commit Graph

368 Commits

Author SHA1 Message Date
Thomas Rittson 6bd5d579af
[PS-74] Fix user authentication state checks (#2481)
* Replace vaultTimeoutService.isLocked
2022-05-02 07:57:40 +10:00
Thomas Rittson 17c3fdd68b
[EC-157] [BEEEP] Remove factory providers in Angular DI (#2516)
* Use initService

* Use InjectionTokens

* Update to use new locked and logout callbacks
2022-04-27 09:11:39 +10:00
Thomas Rittson a02e966da4
Update jslib (#2511)
* Update jslib

* Update name of UserVerificationComponent

* Update service deps
2022-04-19 10:30:46 -05:00
Daniel James Smith 29402f3109
[PS-102] BEEEP: Tab-change performance improvements (#2447)
* Remove passing in main to notification as it's unused

* Remove messages nothing reacts to

* Shorten re-draw of badge and menu on logout

* Remove windows.background and only listen to changes of tabs on focused window

* Only rreact to tab changes of current active tab

* Comments and console-logs

* Removed comments and console.logs

* Updated package-lock.json

* Check if chrome.windows is available

* Simplify check for active tab
2022-04-11 12:00:07 +02:00
Kyle Spearrin bf081e0322
username generator (#2468)
* username generator

* pass usernameWebsite

* update jslib ref

* update jslib ref

* update jslib ref

* update jslib ref

* Update jslib to point to jslib master

* Updated package-lock.json after running npm i

* add missing translations

* pr feedback

Co-authored-by: Daniel James Smith <djsmith@web.de>
2022-03-30 17:59:58 -04:00
Oscar Hinton d5334360dd
Add support for no intrusive biometric (#2431) 2022-03-15 13:13:39 +01:00
Thomas Rittson ed61996165
Set icon for Private Mode windows that are already open (#2438) 2022-03-10 08:09:11 +10:00
Thomas Rittson 2094c85205
Fix syntax (#2434) 2022-03-07 07:02:57 +10:00
Robyn MacCallum 51db742be7 change class to interface 2022-03-02 17:25:37 -05:00
Robyn MacCallum 7e432b40e2 details, details 2022-03-02 16:12:01 -05:00
Robyn MacCallum b02b35e1b5 Fix import 2022-03-02 16:03:18 -05:00
Robyn MacCallum e56cf962ca Fix icon status not refreshing on chrome 2022-03-02 15:59:10 -05:00
Oscar Hinton c27f421d56
Add eslint (#2405) 2022-02-24 18:14:04 +01:00
Thomas Rittson b0dbb6f2f9
Update jslib (#2407)
* Update jslib

* Add error message string for session timeout

* Update deps
2022-02-24 09:33:58 -05:00
Thomas Rittson 06ba30fc6b
[BEEEP] Firefox Private Mode (#2294)
* Create background in popup if private mode, remove gates

* Add messaging support to runtime in private mode

* Fix messaging services and general bootstrap logic

* Add private mode warning, remove old component

* Deprecate launchGuardService

* Require in memory account for user to be considered authenticated

* Don't change icon for private mode windows

* Set all icons from background page
2022-02-16 08:06:35 +10:00
Matt Gibson 45ed645cea
Skip unlocking unless locked, not only biometric locked (#2350) 2022-02-11 03:44:35 -06:00
Daniel James Smith 95d92908f6
Fixing some regression issues (#2325)
* Pull jslib

* Extend vaultTimeoutServiceCallbacks to use userId

* Remove redundant call to tokenService.clear
2022-02-09 23:56:14 +01:00
addison 55850e6cc6 [bug] Dont block redirecting on logout 2022-02-08 09:49:44 -05:00
Thomas Rittson 7d43835ea2
Update client for authService refactor (#2302) 2022-02-08 09:06:37 +10:00
addison 9cea47aaf1 [bug] Clean state service on logout 2022-02-07 15:09:43 -05:00
addison 901b88b21f Update jslib 2022-02-03 13:55:06 -05:00
addison c4844b9943 [style] Ran prettier 2022-01-31 14:48:52 -05:00
addison 4f9a741278 [style] Lint fixes 2022-01-31 14:46:04 -05:00
addison f6e274a9a0 [chore] Update jslib 2022-01-31 14:21:06 -05:00
Daniel James Smith bd770c90ed
[Account Switching] Base changes for account switching (#2250)
* Pull in jslib

* Create new state models

* Create browser specific stateService

* Remove registration deprecated services, register stateService

* Replace usage of deprecated services (user, constants)

* Add missing properties to BrowserGroupingsComponentState

* Remove StorageService from initFactory

* Clear the correct state

* Add null check when restoring send-grouping state

* add remember email

* Initialize stateservice in services.module

* Fix 'lock now' not working

* Comment to remove setting defaults on install

* Pull jslib

* Remove setting defaults on install

* Bump jslib

* Pass the current userId to services when logging out

* Bump jslib

* Override vaultTimeout default on account addition

* Pull latest jslib

* Retrieve vaultTimeout from stateService

* Record activity per Account

* Add userId to logout and add fallback if not present

* Register AccountFactory

* Pass userId in messages

* Base changes for account switching di fixes (#2280)

* [bug] Null checks on Account init

* [bug] Use same stateService instance for all operations

We override the stateService in browser, but currently don't pull the background service into popup and allow jslib to create its own instance of the base StateService for jslib services.
This causes a split in in memory state between the three isntances that results in many errors, namely locking not working.

* [chore] Update jslib

* Pull in jslib

* Pull in jslib

* Pull in latest jslib to multiple stateservice inits

* Check vault states before executing processReload

* Adjust iterator

* Update native messaging to include the userId (#2290)

* Re-Add UserVerificationService

* Fix email not being remembered by base component

* Improve readability of reloadProcess

* Removed unneeded null check

* Fix constructor dependency (stateService)

* Added missing await

* Simplify dependency registration

* Fixed typos

* Reverted back to simple loop

* Use vaultTimeoutService to retrieve Timeout

Co-authored-by: Addison Beck <abeck@bitwarden.com>
Co-authored-by: Oscar Hinton <oscar@oscarhinton.com>
2022-01-27 22:22:51 +01:00
Daniel James Smith aa8fe04a28
[UX] Change menu items for unauthed and locked vault (#2285)
* Change menu items for unauthed and locked vault

* Use 'Log in' instead of 'Login'
2022-01-25 08:17:01 +01:00
Daniel James Smith 71913a5eb5
Update badge number when saving a new entry (#2284)
* Rename message to changePasswordMessage

* Rename message variable to addLoginMessage

* Add early return and remove unneeded if below

* Update badge and menu after adding an entry

* Adjusted casing of enum properties

* Add explicit check for queueMessageType

* Turn NotificationQueueMessageType into simple enum
2022-01-25 08:16:36 +01:00
Oscar Hinton 8fe821b9a3
Apply Prettier (#2238) 2021-12-21 15:43:35 +01:00
Daniel James Smith 0174d239ca
Fix save prompt showing when disabled by user 2021-12-15 19:04:47 +01:00
Daniel James Smith ec502c06a5
Merge pull request #2180 from bitwarden/fix/save-when-locked
Don't save passwords if user is logged out
2021-11-17 20:33:02 +01:00
Daniel James Smith daf20bbf57
Do not prompt for new login if user is not logged in 2021-11-16 13:34:06 +01:00
Thomas Rittson f85a6958bc
Update jslib and service dependencies (#2179)
* Update service deps

* Fix linting

* Update jslib
2021-11-16 20:50:58 +10:00
Thomas Rittson 7b3f8d4223 Don't save passwords if user is logged out 2021-11-16 14:14:48 +10:00
Thomas Rittson cf28435ce3
[Key Connector] Add support for key connector and OTP (#2156)
Co-authored-by: Hinton <oscar@oscarhinton.com>
2021-11-09 18:59:51 +01:00
Kyle Spearrin 0039d4aaea
url encode data from msg_handler content script (#2170) 2021-11-09 12:26:17 -05:00
Daniel James Smith f3ed0329a8
Changed param of arrow function for check of CipherRepromptType 2021-11-09 09:43:11 +01:00
Daniel James Smith d448c402dc
Filter ciphers that have password reprompt set when using unlock on autofill via contextMenu 2021-11-05 14:18:59 +01:00
Thomas Rittson 2113c709a4
[Linked fields] Add Linked Field as a custom field type (#1963)
* Proof of concept for Linked custom field type

* Linked Fields for all cipher types, use dropdown

* Fix linked icon alignment

* Tweak linked icon alignment and style

* Move add-edit custom fields to own component

* Disable copy for linked field

* Use Field.LinkedId to store linked field info
2021-11-04 07:40:42 +10:00
Daniel James Smith dd7bfcdc12
Removed unnecessary brackets 2021-11-02 10:09:44 +01:00
Daniel James Smith 9d79bae1c8
When vault is locked also check for personal ownership policy 2021-10-29 18:50:55 +02:00
Daniel James Smith 439b1f52c0
Merge pull request #2132 from bitwarden/unlock-on-autofill
Unlock on autofill (shortcut and contextMenu)
2021-10-22 13:49:13 +02:00
Daniel James Smith f394cbf57f
Revert "Remove check for isVivaldi"
This reverts commit c318b58185.
2021-10-22 10:01:18 +02:00
Oscar Hinton ce2e6c3cb4
Remove empty catch blocks and remove allow-empty-catch tslint rule (#2136) 2021-10-21 11:10:46 +02:00
Daniel James Smith c318b58185
Remove check for isVivaldi 2021-10-20 17:52:10 +02:00
Daniel James Smith 39a189e7b3
Fixed formatting 2021-10-20 17:49:58 +02:00
Daniel James Smith fd9455873d
Add literal for noopCommand suffix 2021-10-20 17:45:19 +02:00
Daniel James Smith 6a02487778
Merge pull request #2134 from jesseliu612/master
solved a casing issue that may lead to build fail
2021-10-20 15:47:05 +02:00
Liu Junqi 75c0680968 solved a casing issue that may lead to build fail 2021-10-20 21:11:46 +08:00
Daniel James Smith d96b19b9fc
Merge branch 'master' of https://github.com/bitwarden/browser into reduce-binking-of-notificationBar 2021-10-19 18:55:47 +02:00
Daniel James Smith ec13cfd70c
Pick first cipher matching url as no specific cipher was selected by the user when vault is locked 2021-10-19 16:11:48 +02:00