1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-07-04 11:55:58 +02:00
bitwarden-browser/libs/common
Jake Fink a0e0637bb6
[PM-5255, PM-3339] Refactor login strategy to use state providers (#7821)
* add key definition and StrategyData classes

* use state providers for login strategies

* serialize login data for cache

* use state providers for auth request notification

* fix registrations

* add docs to abstraction

* fix sso strategy

* fix password login strategy tests

* fix base login strategy tests

* fix user api login strategy tests

* PM-3339 add tests for admin auth request in sso strategy

* fix auth request login strategy tests

* fix webauthn login strategy tests

* create login strategy state

* use barrel file in common/spec

* test login strategy cache deserialization

* use global state provider

* add test for login strategy service

* fix auth request storage

* add recursive prototype checking and json deserializers to nested objects

* fix CLI

* Create wrapper for login strategy cache

* use behavior subjects in strategies instead of global state

* rename userApi to userApiKey

* pr feedback

* fix tests

* fix deserialization tests

* fix tests

---------

Co-authored-by: rr-bw <102181210+rr-bw@users.noreply.github.com>
2024-03-12 14:19:50 -04:00
..
spec Include Storage Location In Fake Cache Key (#8203) 2024-03-05 12:30:40 -05:00
src [PM-5255, PM-3339] Refactor login strategy to use state providers (#7821) 2024-03-12 14:19:50 -04:00
custom-matchers.d.ts Fix failing crypto tests (#5948) 2023-08-04 02:13:33 +00:00
jest.config.js [PM-2328] Fix jest deprecations (#5483) 2023-05-22 20:19:16 +02:00
package.json chore(deps): update dependency rimraf to v5 (#5468) 2023-05-19 14:23:44 +02:00
test.setup.ts Fix failing crypto tests (#5948) 2023-08-04 02:13:33 +00:00
tsconfig.json Fix failing crypto tests (#5948) 2023-08-04 02:13:33 +00:00
tsconfig.spec.json [EC-423] Fix unit tests (#3265) 2022-08-11 11:35:08 +10:00