element-web-Github/test/components/views/dialogs
Kerry d9d52fba8c
OIDC: use delegated auth account URL from OidcClientStore (#11723)
* test persistCredentials without a pickle key

* test setLoggedIn with pickle key

* lint

* type error

* extract token persisting code into function, persist refresh token

* store has_refresh_token too

* pass refreshToken from oidcAuthGrant into credentials

* rest restore session with pickle key

* retreive stored refresh token and add to credentials

* extract token decryption into function

* remove TODO

* very messy poc

* utils to persist clientId and issuer after oidc authentication

* add dep oidc-client-ts

* persist issuer and clientId after successful oidc auth

* add OidcClientStore

* comments and tidy

* expose getters for stored refresh and access tokens in Lifecycle

* revoke tokens with oidc provider

* test logout action in MatrixChat

* comments

* prettier

* test OidcClientStore.revokeTokens

* put pickle key destruction back

* comment pedantry

* working refresh without persistence

* extract token persistence functions to utils

* add sugar

* implement TokenRefresher class with persistence

* tidying

* persist idTokenClaims

* persist idTokenClaims

* tests

* remove unused cde

* create token refresher during doSetLoggedIn

* tidying

* also tidying

* OidcClientStore.initClient use stored issuer when client well known unavailable

* test Lifecycle.logout

* update Lifecycle test replaceUsingCreds calls

* fix test

* add sdkContext to UserSettingsDialog

* use sdkContext and oidcClientStore in session manager

* use sdkContext and OidcClientStore in generalusersettingstab

* tidy

* test tokenrefresher creation in login flow

* test token refresher

* Update src/utils/oidc/TokenRefresher.ts

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* use literal value for m.authentication

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* improve comments

* fix test mock, comment

* typo

* add sdkContext to SoftLogout, pass oidcClientStore to logout

* fullstops

* comments

* fussy comment formatting

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2023-10-15 23:03:25 +00:00
..
__snapshots__ Avoid rendering app download buttons if disabled in config (#11741) 2023-10-13 09:43:39 +00:00
devtools Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
security CreateSecretStorageDialog: stop using deprecated APIs (#11635) 2023-09-22 11:03:05 +00:00
spotlight Migrate more strings to translation keys (#11671) 2023-09-26 18:35:55 +01:00
AccessSecretStorageDialog-test.tsx Conform more of the codebase to strictNullChecks (#10731) 2023-04-28 09:45:36 +01:00
AppDownloadDialog-test.tsx Avoid rendering app download buttons if disabled in config (#11741) 2023-10-13 09:43:39 +00:00
AskInviteAnywayDialog-test.tsx Add tests for AskInviteAnywayDialog (#10228) 2023-02-23 10:52:58 +00:00
ChangelogDialog-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
ConfirmRedactDialog-test.tsx Fix jest/valid-expects lints (#11238) 2023-07-13 15:19:44 +00:00
ConfirmUserActionDialog-test.tsx Change avatar to use Compound implementation (#11448) 2023-08-24 03:48:35 +00:00
CreateRoomDialog-test.tsx Allow creating public knock rooms (#11481) 2023-09-04 16:09:44 +00:00
DevtoolsDialog-test.tsx Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
ExportDialog-test.tsx Remove Enzyme tests in favour of React testing-library (#10289) 2023-03-06 12:13:17 +00:00
FeedbackDialog-test.tsx Make existing and new issue URLs configurable (#10710) 2023-04-26 09:36:00 +00:00
ForwardDialog-test.tsx Change avatar to use Compound implementation (#11448) 2023-08-24 03:48:35 +00:00
IncomingSasDialog-test.tsx Switch to importing matrix-js-sdk from its main export (#11360) 2023-08-03 12:56:30 +00:00
InteractiveAuthDialog-test.tsx Conform more of the codebase to strict types (#11191) 2023-07-05 11:53:22 +01:00
InviteDialog-test.tsx Switch to importing @types/{event,partials} from main js-sdk export (#11369) 2023-08-08 10:12:12 +00:00
LogoutDialog-test.tsx LogoutDialog: Remove usage of deprecated keybackup API (#11645) 2023-09-21 18:34:10 +00:00
ManageRestrictedJoinRuleDialog-test.tsx Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00
ManualDeviceKeyVerificationDialog-test.tsx Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
MessageEditHistoryDialog-test.tsx Use Intl to localise dates and times (#11422) 2023-08-21 19:38:59 +00:00
RoomSettingsDialog-test.tsx Avoid importing mkEvent from matrix-js-sdk/spec since that is not in the package (#11450) 2023-08-23 09:51:27 +00:00
ServerPickerDialog-test.tsx Support Matrix 1.1 (drop legacy r0 versions) (#9819) 2023-08-14 09:25:13 +01:00
SpotlightDialog-test.tsx Allow requesting to join knock rooms via spotlight (#11482) 2023-08-30 06:54:26 +00:00
UserSettingsDialog-test.tsx OIDC: use delegated auth account URL from OidcClientStore (#11723) 2023-10-15 23:03:25 +00:00