1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-15 01:11:47 +01:00
Commit Graph

1930 Commits

Author SHA1 Message Date
Jared Snider
9f8696f377
PM-8113 - Move TwoFactorAuthEmail content to own folder. 2024-12-16 15:42:39 -05:00
Jared Snider
d1d438bebe
PM-8113 - Refactor libs/auth/2fa into barrel files. 2024-12-16 15:34:45 -05:00
Jared Snider
3eef2597b6
PM-8113 - (1) Consolidate TwoFactorAuthEmail component into new service architecture (2) Move openPopoutIfApprovedForEmail2fa to new TwoFactorAuthEmailComponentService 2024-12-16 15:26:09 -05:00
Jared Snider
112f9d4592
PM-8113 - TwoFactorAuthComponent tests - updated to pass 2024-12-15 14:38:13 -05:00
Jared Snider
71fd85c907
PM-8113 - TwoFactorAuthComp - isTrustedDeviceEncEnabled - add undefined check for optional window close. + Add todo 2024-12-15 14:30:14 -05:00
Jared Snider
ace5f3b99c
PM-8113 - TwoFactorAuthComponent - add TODO 2024-12-15 14:25:17 -05:00
Jared Snider
8f19645b2e
PM-8113 - TwoFactorAuthComponent - refactor routes. 2024-12-15 14:24:35 -05:00
Jared Snider
a1f82e5bb8
PM-8113 - TwoFactorAuthComponent - remove now unused method 2024-12-15 14:21:59 -05:00
Jared Snider
38dc309ac5
PM-8113 - TwoFactorAuthComponent - finish refactoring out all callbacks 2024-12-15 14:21:16 -05:00
Jared Snider
e19f3ea04e
PM-8113 - TwoFactorAuthComponent - WIP on removing TDE callbacks 2024-12-15 14:09:51 -05:00
Jared Snider
12b5da1871
PM-8113 - TwoFactorAuthComponent - more clean up 2024-12-15 14:01:48 -05:00
Jared Snider
8fa330fe01
PM-8113 - TwoFactorAuthComponent - misc cleanup 2024-12-15 13:50:13 -05:00
Jared Snider
bbdb0c254d
PM-8113 - Implement new TwoFactorAuthComponentService .openPopoutIfApprovedForEmail2fa to replace extension specific init logic. 2024-12-15 13:40:54 -05:00
Jared Snider
3b524fc1d3
PM-8113 - TwoFactorAuthComponent - move linux popup width extension logic into ExtensionTwoFactorAuthComponentService 2024-12-14 16:34:47 -05:00
Jared Snider
42719e4f13
PM-8113 - TwoFactorAuthComponent - pull webauthn fallback response handling into primary init with checks based on client for if it should be processed. 2024-12-14 16:20:12 -05:00
Jared Snider
831328c83c
PM-8113 - TwoFactorAuthComponent - WIP on webauthn init. 2024-12-14 15:30:56 -05:00
Jared Snider
30df06399a
PM-8113 - Refactor 2FA Guard logic out of ngOnInit and into own tested guard. Updated all routes. 2024-12-12 17:01:04 -05:00
Jared Snider
f28242afc1
PM-8113 - TwoFactorService Abstraction - refactor to use proper functions + mark methods as abstract properly + add null return to getProviders 2024-12-12 16:29:09 -05:00
Jared Snider
0fa92b7b85
PM-8113 - TwoFactorAuth - implement browser specific SSO + 2FA logic 2024-12-12 14:49:45 -05:00
Jared Snider
c0fa016772
PM-8113 - TwoFactorAuthComponent - Add client type 2024-12-11 20:09:45 -05:00
Jared Snider
055276ba40
PM-8113 - TwoFactorAuthComponent - Add todo 2024-12-11 18:53:59 -05:00
Jared Snider
4a60ae2736
PM-8113 - TwoFactorAuthComponent - Add type for providerData 2024-12-09 19:48:37 -05:00
Jared Snider
7235b37b85
PM-8113 - TwoFactorAuthComp - Refactor out unused button action text and move checks for continue button visibility into component 2024-12-09 19:44:06 -05:00
Jared Snider
e846d09066
PM-8113 - TwoFactorAuth - Remove unused service dep 2024-12-09 19:32:54 -05:00
Jared Snider
3aa96b8d41
PM-8113 - TwoFactorAuthComp - more refactors 2024-12-09 19:28:07 -05:00
Jared Snider
a5cf61b597
PM-8113 - TwoFactorAuthComp - More refactoring 2024-12-09 19:20:21 -05:00
Jared Snider
9bee399811
PM-8113 - TwoFactorAuthComponent - refactor default success route handling 2024-12-09 19:12:25 -05:00
Jared Snider
d9c05e845c
PM-8113 - TwoFactorAuthComp Tests - clean up tests for removed callbacks. 2024-12-09 19:05:26 -05:00
Jared Snider
3b154faae3
PM-8113 - TwoFactorAuth - (1) more refactoring (2) removed onSuccessfulLoginNavigate (3) after successful login we always loginEmailService.clearValues() 2024-12-09 18:10:20 -05:00
Jared Snider
e70c126148
PM-8113 - TwoFactorAuthComp - More naming refactors 2024-12-09 17:56:42 -05:00
Jared Snider
15bff43ba8
PM-8113 - TwoFactorAuthComp - Refactor init a bit. 2024-12-09 17:55:41 -05:00
Jared Snider
0caf9d8196
PM-8113 - 2FA Auth - update deps to private as inheritance will no longer be used. 2024-12-09 17:40:10 -05:00
Jared Snider
5989239096
PM-8113 - 2FA Auth Comp - Progress on removing onSuccessfulLogin callback 2024-12-09 17:33:40 -05:00
Jared Snider
e1f558c4a0
PM-8113 - Fix TwoFactorAuthExpiredComp imports + TwoFactorAuthComponent imports on other clients. 2024-12-09 16:03:12 -05:00
Jared Snider
8d8f59565b
PM-8113 - Fix 2FA Auth Comp tests by adding new service deps. 2024-12-09 15:58:35 -05:00
Jared Snider
c28c8cbbc3
PM-8113 - Export TwoFactorAuth from libs/auth 2024-12-09 15:48:48 -05:00
Jared Snider
df427178a0
PM-8113 - Bring across 2FA session timeout to new 2FA orchestrator comp 2024-12-09 15:35:54 -05:00
Jared Snider
c9ced8a62d
Merge remote-tracking branch 'origin/main' into auth/pm-8113/2fa-comps-ui-refresh + merge confliction resolution 2024-12-09 15:29:47 -05:00
Victoria League
4daba832a2
[CL-351] Prevent tw-group styling conflicts by namespacing (#12261) 2024-12-09 15:13:42 -05:00
Matt Gibson
9c1e2ebd67
Typescript-strict-plugin (#12235)
* Use typescript-strict-plugin to iteratively turn on strict

* Add strict testing to pipeline

Can be executed locally through either `npm run test:types` for full type checking including spec files, or `npx tsc-strict` for only tsconfig.json included files.

* turn on strict for scripts directory

* Use plugin for all tsconfigs in monorepo

vscode is capable of executing tsc with plugins, but uses the most relevant tsconfig to do so. If the plugin is not a part of that config, it is skipped and developers get no feedback of strict compile time issues. These updates remedy that at the cost of slightly more complex removal of the plugin when the time comes.

* remove plugin from configs that extend one that already has it

* Update workspace settings to honor strict plugin

* Apply strict-plugin to native message test runner

* Update vscode workspace to use root tsc version

* `./node_modules/.bin/update-strict-comments` 🤖

This is a one-time operation. All future files should adhere to strict type checking.

* Add fixme to `ts-strict-ignore` comments

* `update-strict-comments` 🤖

repeated for new merge files
2024-12-09 20:58:50 +01:00
Victoria League
0906c503e1
[CL-522] Reduce font size for checkbox and radio labels (#12251) 2024-12-09 14:10:14 -05:00
Nick Krantz
b5ce2167eb
update styles of the password history to use bitLink & button (#12246) 2024-12-09 09:04:16 -06:00
Alec Rippberger
69800d01ab
revert: [PR-13659] remove 2FA timeout logging and fix attempts
This reverts two previous commits:
- PM-13659 - 2FA Timeout Log All the things (#12275)
- Auth/PM-13659 - 2FA Timeout - Attempted Fix (#12263)
2024-12-06 13:42:32 -06:00
Jared Snider
9fcc4f0543
PM-13659 - 2FA Timeout Log All the things (#12275) 2024-12-06 12:43:17 -05:00
Andreas Coroiu
f16bfa4cd2
[PM-9035] desktop build logic to provide credentials to os on sync (#10181)
* feat: scaffold desktop_objc

* feat: rename fido2 to autofill

* feat: scaffold electron autofill

* feat: auto call hello world on init

* feat: scaffold call to basic objc function

* feat: simple log that checks if autofill is enabled

* feat: adding some availability guards

* feat: scaffold services and allow calls from inspector

* feat: create custom type for returning strings across rust/objc boundary

* chore: clean up comments

* feat: enable ARC

* feat: add util function `c_string_to_nsstring`

* chore: refactor and rename to `run_command`

* feat: add try-catch around command execution

* feat: properly implement command calling

Add static typing. Add proper error handling.

* feat: add autoreleasepool to avoid memory leaks

* chore: change objc names to camelCase

* fix: error returning

* feat: extract some helper functions into utils class

* feat: scaffold status command

* feat: implement status command

* feat: implement password credential mapping

* wip: implement sync command

This crashes because we are not properly handling the fact that `saveCredentialIdentities` uses callbacks, resulting in a race condition where we try to access a variable (result) that has already gotten dealloc'd.

* feat: first version of callback

* feat: make run_command async

* feat: functioning callback returns

* chore: refactor to make objc code easier to read and use

* feat: refactor everything to use new callback return method

* feat: re-implement status command with callback

* fix: warning about CommandContext not being FFI-safe

* feat: implement sync command using callbacks

* feat: implement manual password credential sync

* feat: add auto syncing

* docs: add todo

* feat: add support for passkeys

* chore: move desktop autofill service to init service

* feat: auto-add all .m files to builder

* fix: native build on unix and windows

* fix: unused compiler warnings

* fix: napi type exports

* feat: add corresponding dist command

* feat: comment signing profile until we fix signing

* fix: build breaking on non-macOS platforms

* chore: cargo lock update

* chore: revert accidental version change

* feat: put sync behind feature flag

* chore: put files in autofill folder

* fix: obj-c code not recompiling on changes

* feat: add `namespace` to commands

* fix: linting complaining about flag

* feat: add autofill as owner of their objc code

* chore: make autofill owner of run_command in core crate

* fix: re-add napi annotation

* fix: remove dev bypass
2024-12-06 16:31:30 +01:00
Jared Snider
8d68a2dd58
Auth/PM-13659 - 2FA Timeout - Attempted Fix (#12263)
fix(auth): attempt to resolve 2FA session timeout issue
2024-12-05 20:22:13 -05:00
Vijay Oommen
d6e1fe70ca
PM-15091 Remove client side featureflag.AccessIntelligence and use DB feature flag (#12247)
* PM-15091 remove featureflag.AccessIntelligence

* removed unwanted lines of code

* fixed merge conflict
2024-12-05 17:24:51 +00:00
Brandon Treston
c11f429ddb
[PM-12273] Admin Console Integration Page (#11883)
* Integration page initial implementation

* replace placeholder integrations

* fix linting and tests

* fix locales

* update locale

* Change logos, add link to SCIM page

* refactor to standalone components, add integration filtering pipe

* refactor modules and imports. Remove hyperlink text from integration card template

* refactor i18n usage to be more generic

* Add storybooks

* fix tests

* minify svgs, include spec files in TS config, fix stories

* Update apps/web/src/locales/en/messages.json

Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>

* fix imports, add static dir for stories

* Add darkmode svgs for integrations

* hide nav link for non enterprise orgs

* add router guard

* change rxjs selector

* Remove tailwind class causing style issues

---------

Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
2024-12-05 10:09:40 -05:00
Jared Snider
0b3cd49331
PM-8113 - TwoFactorAuth - Deprecate browser implementation of two-factor-auth and move all logic into single component - WIP 2024-12-04 19:19:41 -05:00
Jared Snider
f838694b88
PM-8113 - TwoFactorAuth - add TODO to ensure I don't miss web on success logic 2024-12-04 19:07:43 -05:00