riot-web/src/utils
Kerry 7b3d0ad209
OIDC: Log in (#11199)
* add delegatedauthentication to validated server config

* dynamic client registration functions

* test OP registration functions

* add stubbed nativeOidc flow setup in Login

* cover more error cases in Login

* tidy

* test dynamic client registration in Login

* comment oidc_static_clients

* register oidc inside Login.getFlows

* strict fixes

* remove unused code

* and imports

* comments

* comments 2

* util functions to get static client id

* check static client ids in login flow

* remove dead code

* OidcRegistrationClientMetadata type

* navigate to oidc authorize url

* exchange code for token

* navigate to oidc authorize url

* navigate to oidc authorize url

* test

* adjust for js-sdk code

* login with oidc native flow: messy version

* tidy

* update test for response_mode query

* tidy up some TODOs

* use new types

* add identityServerUrl to stored params

* unit test completeOidcLogin

* test tokenlogin

* strict

* whitespace

* tidy

* unit test oidc login flow in MatrixChat

* strict

* tidy

* extract success/failure handlers from token login function

* typo

* use for no homeserver error dialog too

* reuse post-token login functions, test

* shuffle testing utils around

* shuffle testing utils around

* i18n

* tidy

* Update src/Lifecycle.ts

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* tidy

* comment

* update tests for id token validation

* move try again responsibility

* prettier

* use more future proof config for static clients

* test util for oidcclientconfigs

* rename type and lint

* correct oidc test util

* store issuer and clientId pre auth navigation

* adjust for js-sdk changes

* update for js-sdk userstate, tidy

* update MatrixChat tests

* update tests

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2023-07-11 04:09:18 +00:00
..
beacon Enable strictPropertyInitialization (#11203) 2023-07-07 14:46:12 +01:00
crypto Kill off references to deprecated `getStoredDevice` and `getStoredDevicesForUser` (#11152) 2023-06-28 12:39:34 +00:00
device Fix display of devices without encryption support in Settings dialog (#10977) 2023-05-25 16:12:01 +00:00
dm Pass around MatrixClients instead of using MatrixClientPeg (#11000) 2023-05-30 10:36:34 +01:00
event
exportUtils Apply i18n to strings in the html export (#11176) 2023-07-04 09:37:10 +00:00
localRoom Conform more of the codebase to `strictNullChecks` (#10731) 2023-04-28 09:45:36 +01:00
location Enable strictPropertyInitialization (#11203) 2023-07-07 14:46:12 +01:00
media
oidc OIDC: Log in (#11199) 2023-07-11 04:09:18 +00:00
permalinks Matrix matrix scheme permalink constructor not stripping query params (#11060) 2023-06-09 07:20:05 +00:00
pushRules
room Don't setup keys on login when encryption is force disabled (#11125) 2023-06-27 09:42:31 +00:00
validate
AnimationUtils.ts
AutoDiscoveryUtils.tsx OIDC: update to `oidc-client-ts` functions from js-sdk (#11193) 2023-07-10 00:57:16 +00:00
BrowserWorkarounds.ts
DMRoomMap.ts Eliminate the use of MatrixClientPeg in utils (#10910) 2023-05-23 16:24:12 +01:00
DecryptFile.ts Conform more of the codebase to strictNullChecks (#11134) 2023-06-27 17:39:56 +01:00
DialogOpener.ts Eliminate the use of MatrixClientPeg in utils (#10910) 2023-05-23 16:24:12 +01:00
DirectoryUtils.ts
EditorStateTransfer.ts Conform more of the codebase to `strictNullChecks` (#10358 2023-03-13 15:07:20 +00:00
ErrorUtils.tsx use ExternalLink components for external links (#10758) 2023-05-03 21:26:26 +00:00
EventRenderingUtils.ts Use MatrixClientPeg::safeGet for strict typing (#10989) 2023-06-21 17:29:44 +01:00
EventUtils.ts Eliminate the use of MatrixClientPeg in utils (#10910) 2023-05-23 16:24:12 +01:00
Feedback.ts
FileDownloader.ts Conform `src/components/views/messages/*` code to `strictNullChecks` (#10461) 2023-03-29 08:22:35 +01:00
FileUtils.ts fix file size display from kB to KB (#10561) 2023-04-11 14:48:41 +01:00
FixedRollingArray.ts
FontManager.ts
FormattingUtils.ts Conform more of the codebase to strict typescript (#10841) 2023-05-25 09:39:23 +01:00
IDestroyable.ts
IdentityServerUtils.ts Enable strictPropertyInitialization (#11203) 2023-07-07 14:46:12 +01:00
Image.ts
JSON.ts
KeyVerificationStateObserver.ts Eliminate the use of MatrixClientPeg in utils (#10910) 2023-05-23 16:24:12 +01:00
LazyValue.ts Improve quality of Typescript types (#10742) 2023-05-05 09:11:14 +01:00
LruCache.ts Add `UserProfilesStore`, `LruCache` and cache for user permalink profiles (#10425) 2023-03-27 10:07:43 +02:00
MarkedExecution.ts
MatrixGlob.ts
MediaEventHelper.ts Apply `strictNullChecks` to `src/utils/*!exportUtils` (#10455 2023-04-03 09:26:55 +01:00
MegolmExportEncryption.ts
MessageDiffUtils.tsx Replace brittle custom function with lodash implementation (#11188) 2023-07-06 08:22:43 +00:00
Mouse.ts
MultiInviter.ts Conform more of the codebase to strict types (#11191) 2023-07-05 11:53:22 +01:00
NativeEventUtils.ts
PasswordScorer.ts Consider more user inputs when calculating zxcvbn score (#11180) 2023-07-05 09:36:30 +00:00
PinningUtils.ts
PreferredRoomVersions.ts Allow creating knock rooms (#11182) 2023-07-10 08:01:03 +00:00
ReactUtils.tsx
Reply.ts Handle all permitted url schemes in linkify (#11215) 2023-07-10 15:09:39 +00:00
ResizeNotifier.ts
RoomUpgrade.ts Eliminate the use of MatrixClientPeg in utils (#10910) 2023-05-23 16:24:12 +01:00
SearchInput.ts Allows search to recognize full room links (#8275) 2023-05-09 07:55:50 +00:00
ShieldUtils.ts shieldStatusForRoom: avoid deprecated MatrixClient methods (#10944) 2023-05-19 11:57:45 +01:00
Singleflight.ts
SnakedObject.ts
SortMembers.ts Conform more of the codebase to strictNullChecks (#10672) 2023-04-21 11:50:42 +01:00
StorageManager.ts Conform more of the codebase to strictNullChecks (#11134) 2023-06-27 17:39:56 +01:00
Timer.ts Make more of the codebase conform to strict types (#10857) 2023-05-16 14:25:43 +01:00
UrlUtils.ts Handle all permitted url schemes in linkify (#11215) 2023-07-10 15:09:39 +00:00
UserInteractiveAuth.ts Conform more of the codebase to strict types (#11191) 2023-07-05 11:53:22 +01:00
ValidatedServerConfig.ts OIDC: update to `oidc-client-ts` functions from js-sdk (#11193) 2023-07-10 00:57:16 +00:00
WellKnownUtils.ts Add .well-known config option to force disable encryption on room creation (#11120) 2023-06-21 21:50:01 +00:00
Whenable.ts
WidgetUtils.ts Eliminate the use of MatrixClientPeg in utils (#10910) 2023-05-23 16:24:12 +01:00
arrays.ts shieldStatusForRoom: avoid deprecated MatrixClient methods (#10944) 2023-05-19 11:57:45 +01:00
blobs.ts
colour.ts
connection.ts Make more of the codebase conform to strict types (#10859) 2023-05-12 09:49:37 +01:00
createMatrixClient.ts
createVoiceMessageContent.ts
direct-messages.ts Apply `strictNullChecks` to `src/utils/local-room.ts` (#10915) 2023-06-01 11:55:26 +00:00
enums.ts
humanize.ts
i18n-helpers.ts
image-media.ts
iterables.ts
leave-behaviour.ts Enable strictPropertyInitialization (#11203) 2023-07-07 14:46:12 +01:00
local-room.ts Apply `strictNullChecks` to `src/utils/local-room.ts` (#10915) 2023-06-01 11:55:26 +00:00
login.ts
maps.ts
membership.ts Speed up `waitForMember` if user already in room (#11110) 2023-06-19 14:11:25 +00:00
notifications.ts Send correct receipt when marking a room as read (#10730) 2023-04-28 06:07:25 +00:00
numbers.ts
objects.ts Make existing and new issue URLs configurable (#10710) 2023-04-26 09:36:00 +00:00
pages.ts Eliminate the use of MatrixClientPeg in utils (#10910) 2023-05-23 16:24:12 +01:00
pillify.tsx Eliminate the use of MatrixClientPeg in utils (#10910) 2023-05-23 16:24:12 +01:00
presence.ts Eliminate the use of MatrixClientPeg in utils (#10910) 2023-05-23 16:24:12 +01:00
promise.ts Conform more of the codebase to strictNullChecks (#11134) 2023-06-27 17:39:56 +01:00
read-receipts.ts
rooms.ts Don't setup keys on login when encryption is force disabled (#11125) 2023-06-27 09:42:31 +00:00
sets.ts
space.tsx Pass around MatrixClients instead of using MatrixClientPeg (#11000) 2023-05-30 10:36:34 +01:00
stringOrderField.ts Apply `strictNullChecks` to `src/utils/*!exportUtils` (#10455 2023-04-03 09:26:55 +01:00
strings.ts Switch from grapheme-splitter to graphemer (#11037) 2023-06-05 14:39:46 +00:00
threepids.ts Apply `strictNullChecks` to `src/utils/*!exportUtils` (#10455 2023-04-03 09:26:55 +01:00
tooltipify.tsx
units.ts
useTooltip.tsx
video-rooms.ts