1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-16 08:13:26 +00:00
Commit Graph

1497 Commits

Author SHA1 Message Date
Thomas Rittson
358ba67e82 Move api specific stateService calls to entry method 2021-12-20 11:41:46 +10:00
Thomas Rittson
28e98905a0 Move api KC logic into entry method 2021-12-20 11:31:09 +10:00
Thomas Rittson
cfb2ac133a Move existing user KC logic into entry method 2021-12-20 11:29:51 +10:00
Thomas Rittson
49c2d7c5b2 Remove unneeded arg 2021-12-20 11:20:04 +10:00
Thomas Rittson
6e5b267432 Only convert to Key Connector if setCryptoKeys 2021-12-20 11:19:10 +10:00
Thomas Rittson
6227d3a1e9 Move keyConnector onboarding logic to entry method 2021-12-20 11:15:35 +10:00
Thomas Rittson
c8eb559f06 Clean up unused services and imports 2021-12-20 11:05:39 +10:00
Thomas Rittson
a318e267ec Extract completedLogIn logic and fix when it's called 2021-12-20 11:02:37 +10:00
Thomas Rittson
c026265219 Move Key Connector logic into that service 2021-12-20 10:51:20 +10:00
Thomas Rittson
7e9330559b Remove unneeded args 2021-12-20 10:39:12 +10:00
Thomas Rittson
30d3a14524 Move LogIn specific logic to entry method 2021-12-20 10:35:47 +10:00
Thomas Rittson
2551da6592 Make LoginTwoFactor call entry methods
Also fix authingWith* methods
2021-12-20 10:32:58 +10:00
Thomas Rittson
8e633c3604 Fix tokenService calls 2021-12-20 09:37:32 +10:00
Thomas Rittson
e05fd25198 Remove email from processTokenResponse args 2021-12-20 09:29:03 +10:00
Thomas Rittson
be23d022de Fix tokenService interface definition 2021-12-20 09:28:28 +10:00
Thomas Rittson
208e88800b Lift tokenRequest and api call to request methods
Also reduce amount of persistent state (WIP)
2021-12-20 09:20:46 +10:00
Thomas Rittson
bb04c5bf86 Update clients to use new authService interface 2021-12-20 08:01:31 +10:00
Thomas Rittson
0e10ee2c50 Add tests for 2FA 2021-12-20 07:48:09 +10:00
Thomas Rittson
8999793882 Deprecate LogIn...Complete methods
Add TwoFactorData to main LogIn methods and handle null instead of
having duplicative methods
2021-12-17 20:32:09 +10:00
Thomas Rittson
33f5ac822d Tweak naming of twoFactorService interface 2021-12-17 20:13:01 +10:00
Thomas Rittson
8b7f20479e Refactor TokenRequest to take TwoFactorData 2021-12-17 18:59:49 +10:00
Thomas Rittson
4a83258065 Merge commit '193434461dbd9c48fe5dcbad95693470aec422ac' into refactor/authService 2021-12-17 06:10:45 +10:00
Thomas Rittson
1acfa54f00 Run prettier in feature branch 2021-12-17 06:09:55 +10:00
Thomas Rittson
44b0d51336 Merge commit '8b2dfc6cdcb8ff5b604364c2ea6d343473aee7cd' into refactor/authService 2021-12-17 06:05:28 +10:00
Oscar Hinton
193434461d Apply Prettier (#581) 2021-12-16 13:36:21 +01:00
Oscar Hinton
8b2dfc6cdc Add Prettier configuration (#574) 2021-12-16 12:45:01 +01:00
Thomas Rittson
bd55e6ec81 Break tokenRequest into subclasses 2021-12-16 15:32:44 +10:00
Thomas Rittson
6cb2b91fee Make class properties private 2021-12-16 14:20:44 +10:00
Thomas Rittson
e0f51ccbbc Simpler names for methods 2021-12-16 14:19:26 +10:00
Thomas Rittson
dee5c4bef9 Extract 2FA methods to twoFactorService 2021-12-16 14:13:06 +10:00
Thomas Rittson
73eed7fbbc Refactor parameters on saveState 2021-12-16 12:00:07 +10:00
Thomas Rittson
1606d2a6cb Remove unnecessary null check for setBiometricLocked 2021-12-16 11:55:18 +10:00
Thomas Rittson
30ccb330c6 Extract isNewSsoUser to own method, invert logic 2021-12-16 11:52:27 +10:00
Thomas Rittson
c43bd0e144 Extract createKeyPair to own method 2021-12-16 11:46:28 +10:00
Thomas Rittson
3eba2e67dd Extract convertNewUserToKeyConnector to own method 2021-12-16 11:43:16 +10:00
Thomas Rittson
9ff4a89d54 Extract saveState to own method 2021-12-16 11:37:02 +10:00
Thomas Rittson
897f5565b8 Extract createTokenRequest to new method 2021-12-16 11:29:23 +10:00
Thomas Rittson
896e1ef482 Fix linting on tests 2021-12-16 09:55:35 +10:00
Thomas Rittson
5dfdad1a19 Add test: api key happy path 2021-12-16 09:52:12 +10:00
Thomas Rittson
1ec50eb1e8 Add test: do not set keys in new SSO user flow 2021-12-16 09:21:10 +10:00
Thomas Rittson
f0bfc7c68d Fixed broken SSO tests 2021-12-16 09:07:20 +10:00
Thomas Rittson
16b4910aa8 Add test: send 2FA token to server 2021-12-16 08:14:36 +10:00
Thomas Rittson
88e47054fd WIP SSO tests 2021-12-15 14:57:43 +10:00
Thomas Rittson
23cfd1de7f Add test for returning early if 2FA required 2021-12-15 13:15:04 +10:00
Addison Beck
512c5c2837 [bug] Correct storage location of organizations (#580) 2021-12-14 22:04:39 -05:00
Thomas Rittson
e2fd3bd5a9 Add test for making new KeyPair for old account 2021-12-15 12:49:36 +10:00
Thomas Rittson
bfda066bd7 WIP test for Key Connector TODO later 2021-12-15 12:46:35 +10:00
Thomas Rittson
f548402777 Add test for existing keyConnector user 2021-12-15 11:22:15 +10:00
Thomas Rittson
75db9be248 Add test for setCryptoKeys parameter 2021-12-15 11:16:03 +10:00
Thomas Rittson
6e34585dfd Add test for captcha 2021-12-15 11:10:15 +10:00