element-web/test/components/views/settings/tabs/user
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__ Fix: <detail> HTML elements clickable area too wide. (#11666) 2023-10-12 08:50:49 +00:00
AppearanceUserSettingsTab-test.tsx Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00
GeneralUserSettingsTab-test.tsx OIDC: use delegated auth account URL from OidcClientStore (#11723) 2023-10-15 23:03:25 +00:00
KeyboardUserSettingsTab-test.tsx Comply with noImplicitAny (#9940) 2023-02-13 11:39:16 +00:00
LabsUserSettingsTab-test.tsx Default intentional mentions (#11602) 2023-09-14 11:36:15 +00:00
MjolnirUserSettingsTab-test.tsx Use semantic headings in user settings - Ignored users (#11006) 2023-05-30 22:42:53 +00:00
PreferencesUserSettingsTab-test.tsx Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
SecurityUserSettingsTab-test.tsx Don't start key backups when opening settings (#11640) 2023-09-21 12:19:38 +00:00
SessionManagerTab-test.tsx OIDC: use delegated auth account URL from OidcClientStore (#11723) 2023-10-15 23:03:25 +00:00
SidebarUserSettingsTab-test.tsx Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00
VoiceUserSettingsTab-test.tsx await promises (#10992) 2023-05-28 22:19:37 +00:00