element-web/test/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
..
__snapshots__
beacon
crypto
device
dm
exportUtils
localRoom
location
media
oidc OIDC: Log in (#11199) 2023-07-11 04:09:18 +00:00
permalinks
room
validate
AnimationUtils-test.ts
AutoDiscoveryUtils-test.tsx
DMRoomMap-test.ts
DateUtils-test.ts
ErrorUtils-test.ts
EventRenderingUtils-test.ts
EventUtils-test.ts
Feedback-test.ts
FixedRollingArray-test.ts
LruCache-test.ts
MegolmExportEncryption-test.ts
MessageDiffUtils-test.tsx
MultiInviter-test.ts
SearchInput-test.ts
ShieldUtils-test.ts
Singleflight-test.ts
SnakedObject-test.ts
UrlUtils-test.ts
WidgetUtils-test.ts
arrays-test.ts
colour-test.ts
connection-test.ts
createVoiceMessageContent-test.ts
direct-messages-test.ts
enums-test.ts
export-test.tsx
generate-megolm-test-vectors.py
iterables-test.ts
leave-behaviour-test.ts
local-room-test.ts
maps-test.ts
membership-test.ts
notifications-test.ts
numbers-test.ts
objects-test.ts
pillify-test.tsx
rooms-test.ts
sets-test.ts
stringOrderField-test.ts
threepids-test.ts
tooltipify-test.tsx