d9d52fba8c
* 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> |
||
---|---|---|
.. | ||
__snapshots__ | ||
beacon | ||
crypto | ||
device | ||
dm | ||
exportUtils | ||
localRoom | ||
location | ||
media | ||
oidc | ||
permalinks | ||
room | ||
validate | ||
AnimationUtils-test.ts | ||
arrays-test.ts | ||
AutoDiscoveryUtils-test.tsx | ||
colour-test.ts | ||
connection-test.ts | ||
createVoiceMessageContent-test.ts | ||
DateUtils-test.ts | ||
direct-messages-test.ts | ||
DMRoomMap-test.ts | ||
enums-test.ts | ||
ErrorUtils-test.ts | ||
EventRenderingUtils-test.ts | ||
EventUtils-test.ts | ||
export-test.tsx | ||
Feedback-test.ts | ||
FixedRollingArray-test.ts | ||
FormattingUtils-test.tsx | ||
generate-megolm-test-vectors.py | ||
i18n-helpers-test.ts | ||
iterables-test.ts | ||
leave-behaviour-test.ts | ||
local-room-test.ts | ||
LruCache-test.ts | ||
maps-test.ts | ||
MegolmExportEncryption-test.ts | ||
membership-test.ts | ||
MessageDiffUtils-test.tsx | ||
MultiInviter-test.ts | ||
notifications-test.ts | ||
numbers-test.ts | ||
objects-test.ts | ||
pillify-test.tsx | ||
rooms-test.ts | ||
SearchInput-test.ts | ||
SessionLock-test.ts | ||
sets-test.ts | ||
ShieldUtils-test.ts | ||
Singleflight-test.ts | ||
SnakedObject-test.ts | ||
stringOrderField-test.ts | ||
threepids-test.ts | ||
tooltipify-test.tsx | ||
UrlUtils-test.ts | ||
WidgetUtils-test.ts |