element-web/src
Kerry 3a025c4b21
OIDC: refresh tokens (#11699)
* 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

* comments

* prettier

* 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

* update Lifecycle test replaceUsingCreds calls

* 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

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2023-10-12 00:49:07 +00:00
..
@types Update custom translations to support nested fields in structured JSON (#11685) 2023-10-02 10:44:25 +00:00
accessibility Migrate more strings to translation keys (#11613) 2023-09-19 17:16:38 +01:00
actions Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
async-components/views/dialogs Migrate more strings to translation keys (#11694) 2023-10-03 19:17:26 +01:00
audio
autocomplete Migrate more strings to translation keys (#11672) 2023-09-27 17:15:22 +01:00
components Fix untranslated headings in the devtools dialog (#11734) 2023-10-11 22:21:03 +00:00
contexts Use knock rooms sync to reflect the knock state (#11596) 2023-09-11 16:33:40 +00:00
customisations Migrate more strings to translation keys (#11669) 2023-09-26 13:04:17 +01:00
dispatcher
editor Migrate more strings to translation keys (#11613) 2023-09-19 17:16:38 +01:00
effects Migrate more strings to translation keys (#11579) 2023-09-08 09:58:31 +01:00
emojipicker
events Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
hooks Migrate more strings to translation keys (#11671) 2023-09-26 18:35:55 +01:00
i18n/strings Update workflows around i18n to use Localazy (#11455) 2023-10-04 09:28:09 +00:00
indexing
integrations
mjolnir Migrate more strings to translation keys (#11613) 2023-09-19 17:16:38 +01:00
models Support for embedded E2EE (#11492) 2023-08-30 17:30:29 +00:00
modules
notifications Fix: sync intentional mentions push rules with legacy rules (#11667) 2023-09-27 00:03:38 +00:00
performance
rageshake Migrate more strings to translation keys (#11613) 2023-09-19 17:16:38 +01:00
resizer
settings Migrate more strings to translation keys (#11613) 2023-09-19 17:16:38 +01:00
slash-commands Migrate more strings to translation keys (#11665) 2023-09-25 18:12:41 +01:00
stores Migrate more strings to translation keys (#11672) 2023-09-27 17:15:22 +01:00
toasts Migrate more strings to translation keys (#11665) 2023-09-25 18:12:41 +01:00
usercontent
utils OIDC: refresh tokens (#11699) 2023-10-12 00:49:07 +00:00
voice-broadcast Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
widgets Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/cr/72 2023-09-19 10:36:29 +01:00
workers
AddThreepid.ts Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
AsyncWrapper.tsx Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
Avatar.ts Fixes read receipt avatar offset (#11483) 2023-08-30 11:47:35 +00:00
BasePlatform.ts
BlurhashEncoder.ts
ContentMessages.ts Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
DateUtils.ts Port more strings to translation keys (#11474) 2023-08-31 07:35:34 +00:00
DecryptionFailureTracker.ts
DeviceListener.ts DeviceListener: Remove usage of deprecated keybackup API (#11614) 2023-09-20 11:34:18 +00:00
Editing.ts
HtmlUtils.tsx
IConfigOptions.ts
IdentityAuthClient.tsx Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
ImageUtils.ts
KeyBindingsDefaults.ts
KeyBindingsManager.ts
Keyboard.ts
LegacyCallHandler.tsx Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
Lifecycle.ts OIDC: refresh tokens (#11699) 2023-10-12 00:49:07 +00:00
Livestream.ts
Login.ts OIDC: register (#11727) 2023-10-11 21:44:46 +00:00
Markdown.ts
MatrixClientPeg.ts OIDC: refresh tokens (#11699) 2023-10-12 00:49:07 +00:00
MediaDeviceHandler.ts Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
Modal.tsx
NodeAnimator.tsx
Notifier.ts Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
PageTypes.ts
PasswordReset.ts Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
PlatformPeg.ts
PosthogAnalytics.ts
PosthogTrackers.ts Lock out the first tab if Element is opened in a second tab. (#11425) 2023-08-24 08:28:43 +00:00
Presence.ts
Registration.tsx Migrate more strings to translation keys (#11608) 2023-09-19 07:17:31 +01:00
Resend.ts
Roles.ts Migrate more strings to translation keys (#11498) 2023-08-31 11:22:10 +01:00
RoomAliasCache.ts
RoomInvite.tsx Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
RoomNotifs.ts Show knock rooms in the list (#11573) 2023-09-19 11:24:35 +00:00
Rooms.ts
ScalarAuthClient.ts
ScalarMessaging.ts Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
SdkConfig.ts
Searching.ts
SecurityManager.ts Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
SendHistoryManager.ts
SlashCommands.tsx Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
SlidingSyncManager.ts
Terms.ts
TextForEvent.tsx Migrate more strings to translation keys (#11683) 2023-10-02 13:52:27 +01:00
Typeguards.ts
Unread.ts Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
UserActivity.ts
UserAddress.ts
Views.ts Lock out the first tab if Element is opened in a second tab. (#11425) 2023-08-24 08:28:43 +00:00
VoipUserMapper.ts
WhoIsTyping.ts Migrate more strings to translation keys (#11530) 2023-09-05 10:44:41 +01:00
WorkerManager.ts
boundThreepids.ts Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
call-types.ts
createRoom.ts Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
email.ts
identifiers.ts
index.ts
languageHandler.tsx Update custom translations to support nested fields in structured JSON (#11685) 2023-10-02 10:44:25 +00:00
linkify-matrix.ts
phonenumber.ts Get country names from the browser instead of manual i18n (#11428) 2023-08-22 16:15:16 +00:00
sendTimePerformanceMetrics.ts
sentry.ts
shouldHideEvent.ts
theme.ts Migrate more strings to translation keys (#11613) 2023-09-19 17:16:38 +01:00
verification.ts