element-web-Github/test/components/views/settings
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
account Support Matrix 1.1 (drop legacy r0 versions) (#9819) 2023-08-14 09:25:13 +01:00
devices Use stable get_login_token and remove unstable MSC3882 support (#11001) 2023-10-03 12:15:41 +00:00
discovery Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
notifications Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
shared Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
tabs OIDC: use delegated auth account URL from OidcClientStore (#11723) 2023-10-15 23:03:25 +00:00
AddPrivilegedUsers-test.tsx Conform more of the codebase to strictNullChecks (#10602) 2023-04-17 08:31:58 +01:00
AvatarSetting-test.tsx Improve avatar settings accessibility (#9985) 2023-01-27 07:57:24 +00:00
ChangePassword-test.tsx Support Matrix 1.1 (drop legacy r0 versions) (#9819) 2023-08-14 09:25:13 +01:00
CrossSigningPanel-test.tsx Use crypto.isCrossSigningReady in CrossSigningPanel (#11080) 2023-06-14 09:46:14 +00:00
CryptographyPanel-test.tsx Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
EventIndexPanel-test.tsx Enable strictPropertyInitialization (#11203) 2023-07-07 14:46:12 +01:00
FontScalingPanel-test.tsx Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00
JoinRuleSettings-test.tsx Unflake JoinRuleSettings test (#11715) 2023-10-05 03:30:57 +00:00
KeyboardShortcut-test.tsx Conform more code to strict null checking (#10169) 2023-02-16 09:38:44 +00:00
Notifications-test.tsx Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
SecureBackupPanel-test.tsx SecureBackupPanel: stop using deprecated APIs, and other fixes (#11644) 2023-09-22 10:57:11 +00:00
SettingsFieldset-test.tsx Update usages of test utilities preferring RTL (#10203) 2023-02-22 10:52:55 +00:00
ThemeChoicePanel-test.tsx Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00