Thomas Rittson
|
c8eedc5dd6
|
Use null coalescing to minimize let statements
|
2021-12-20 14:54:10 +10:00 |
|
Thomas Rittson
|
71b148c0f8
|
Assign successCallbacks to named variables
|
2021-12-20 14:42:16 +10:00 |
|
Thomas Rittson
|
8a94756308
|
Move method-specific code into successCallback
|
2021-12-20 14:37:03 +10:00 |
|
Thomas Rittson
|
1f11b7cc3b
|
Run Prettier
|
2021-12-20 14:20:58 +10:00 |
|
Thomas Rittson
|
54b4154c02
|
Make authResult.twoFactor a getter
|
2021-12-20 14:15:53 +10:00 |
|
Thomas Rittson
|
e3c7a79f30
|
Use more precise type casting instead of any
|
2021-12-20 12:37:01 +10:00 |
|
Thomas Rittson
|
c2f21e03a9
|
Add helper methods to authResult
|
2021-12-20 12:34:57 +10:00 |
|
Thomas Rittson
|
9c22bfd1e8
|
Move captchaToken to passwordTokenRequest subclass
|
2021-12-20 12:06:05 +10:00 |
|
Thomas Rittson
|
1b33dbff32
|
More descriptive arg names for processTokenResponse
|
2021-12-20 11:51:52 +10:00 |
|
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 |
|