Thomas Rittson
393e88a3f7
Fix getProviders implementation
2021-12-21 11:46:34 +10:00
Thomas Rittson
84e060e493
Update twoFactorService interface
2021-12-21 11:27:14 +10:00
Thomas Rittson
2640e95030
Merge branch 'master' into refactor/authService
2021-12-21 09:21:50 +10:00
Thomas Rittson
581e9ad83a
Minor fixes when integrating with web client
2021-12-21 09:09:23 +10:00
Addison Beck
9e26336549
[feat(Account Switching)] Allow for extending application state ( #584 )
...
* [feat(Account Switching)] Allow for extending application state
* [bug(Account Switching)] Remove hardcoded dev urls
* [bug(Account Switching)] Init Account when signing in
* [bug(Account Switching)] Check for state migration version in local storage for web
* [bug(Account Switching)] Fix never lock configurations
* [chore] Prettier merge
* [bug] Move environmentUrls to global state
* [chore] Ran prettier
* [bug]change storage location for enityId and type
* [style] Ran prettier
Co-authored-by: Robyn MacCallum <robyntmaccallum@gmail.com >
2021-12-20 08:48:47 -05:00
Thomas Rittson
970b658c1f
Update naming of TwoFactor info
2021-12-20 15:20:22 +10:00
Thomas Rittson
da2c73ff67
Simplify various syntax
2021-12-20 15:16:56 +10:00
Thomas Rittson
82cf44cd85
Fix async issue
2021-12-20 15:09:59 +10:00
Thomas Rittson
09df527ada
Fix interface to note async
2021-12-20 15:08:01 +10:00
Thomas Rittson
1b19fa55f1
Improve naming conventions
2021-12-20 15:07:16 +10:00
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
Jake Fink
59a5300458
move sso properties to globalstate ( #583 )
...
* move sso properties to globalstate
* whitespace
* npm prettier changes
2021-12-17 11:24:38 -05: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
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
Linus Aarnio
a8168d6ee7
Fix for issue #1287 in bitwarden/web ( #569 )
...
* Format the fieldvalue as a LocaleDateString instead of epoch when importing a date from 1P
This would be better solved by storing it as a date FieldType instead of Text. But since it is unclear when new field types are added, this solution serves as a fix for now and also guides the solution when new fieldtype exists.
* Remove trailing whitespace
* Add tests for custom fields of 1pif imported identity
* Change representation of 1pif imported dates to UTC string
* Changes after running prettier
Co-authored-by: Daniel James Smith <djsmith@web.de >
2021-12-16 18:46:33 +01:00
Oscar Hinton
193434461d
Apply Prettier ( #581 )
2021-12-16 13:36:21 +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