element-web/test/components/views
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
..
audio_messages Offload some more waveform processing onto a worker (#9223) 2023-04-27 11:02:20 +01:00
auth Get country names from the browser instead of manual i18n (#11428) 2023-08-22 16:15:16 +00:00
avatars Update vector-im (#11621) 2023-10-12 11:12:59 +00:00
beacon Update vector-im (#11621) 2023-10-12 11:12:59 +00:00
beta Fix instances of double translation and guard translation calls using typescript (#11443) 2023-08-22 16:32:05 +01:00
context_menus Locallazy: Convert even more strings (#11679) 2023-10-02 11:43:00 +01:00
dialogs OIDC: use delegated auth account URL from OidcClientStore (#11723) 2023-10-15 23:03:25 +00:00
elements Update vector-im (#11621) 2023-10-12 11:12:59 +00:00
emojipicker Fix regression in emoji picker order mangling after clearing filter (#10854) 2023-05-11 13:24:39 +00:00
location Fix colour of avatar and colour matching with username (#11470) 2023-08-24 17:12:28 +00:00
messages Show io.element.late_event in MessageTimestamp when known (#11733) 2023-10-14 12:25:36 +00:00
polls/pollHistory Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
right_panel Update vector-im (#11621) 2023-10-12 11:12:59 +00:00
rooms Update vector-im (#11621) 2023-10-12 11:12:59 +00:00
settings OIDC: use delegated auth account URL from OidcClientStore (#11723) 2023-10-15 23:03:25 +00:00
spaces Update vector-im (#11621) 2023-10-12 11:12:59 +00:00
toasts Switch to importing matrix-js-sdk from its main export (#11360) 2023-08-03 12:56:30 +00:00
typography Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
user-onboarding Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00
voip Change avatar to use Compound implementation (#11448) 2023-08-24 03:48:35 +00:00
Validation-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
VerificationShowSas-test.tsx Load SAS Emoji translations from @matrix-org/spec (#11429) 2023-08-21 08:15:22 +00:00