Kerry
df78d7cf67
OIDC: add dynamic client registration util function ( #3481 )
...
* rename OidcDiscoveryError to OidcError
* oidc client registration functions
* test registerOidcClient
* tidy test file
* reexport OidcDiscoveryError for backwards compatibility
2023-06-21 21:55:25 +00:00
Kerry
c66850e897
OIDC: Validate m.authentication configuration ( #3419 )
...
* validate m.authentication, fetch issuer wellknown
* move validation functions into separate file
* test validateWellKnownAuthentication
* test validateOIDCIssuerWellKnown
* add authentication cases to autodiscovery tests
* test invalid authentication config on wk
* improve types
* test case for account:false
* use hasOwnProperty in validateWellKnownAuthentication
* comments
* make registration_endpoint optional
2023-06-11 21:32:44 +00:00
Travis Ralston
7d37bb1edb
Remove usage of v1 Identity Server API ( #3003 )
...
* Remove usage of v1 Identity Server API
It's been deprecated for over a year at this point - everyone should be able to support v2.
* Missed one.
2023-01-03 00:59:12 -07:00
Michael Weimann
349c2c2587
Apply prettier formatting
2022-12-09 09:38:20 +01:00
Michael Telatynski
867a0ca7ee
Apply more strict typescript around the codebase ( #2778 )
...
* Apply more strict typescript around the codebase
* Fix tests
* Revert strict mode commit
* Iterate strict
* Iterate
* Iterate strict
* Iterate
* Fix tests
* Iterate
* Iterate strict
* Add tests
* Iterate
* Iterate
* Fix tests
* Fix tests
* Strict types be strict
* Fix types
* detectOpenHandles
* Strict
* Fix client not stopping
* Add sync peeking tests
* Make test happier
* More strict
* Iterate
* Stabilise
* Moar strictness
* Improve coverage
* Fix types
* Fix types
* Improve types further
* Fix types
* Improve typing of NamespacedValue
* Fix types
2022-10-21 11:44:40 +01:00
Michael Telatynski
34c5598a3f
Modernize http-api - move from browser-request to fetch ( #2719 )
2022-10-12 18:59:04 +01:00
3nprob
3f6f5b69c7
Improve test coverage and modernize style for interactive-auth ( #2574 )
...
* style: address no-mixed-operators errors,minor style improvements
* test: Fix async interactive-auth tests, add test case
* tests: Fix incorrectly stringified mock response
* pushprocessor: style update
* use async primitives in interactive-auth-spec
* lint
* fixup: remove duplicate test
* add test case for no-flow-with-session for interactive-auth
* interactive-auth: handle non-existing error.data
* async test fix
* test: add dummyauth test
* add testing for errcode
* Revert "pushprocessor: style update"
This reverts commit 3ed0fdfb73 .
* add testcase for missing error data
* test: move sessionId assignment
* Add tests to improve coverage for interactive-auth
* pushprocessor: style update
2022-08-11 15:29:53 +01:00
Kerry
4a4241806e
test typescriptification - autodiscovery / crypto specs ( #2550 )
...
* spec/unit/autodiscovery.spec.js -> spec/unit/autodiscovery.spec.ts
* fix ts in autodiscovery.spec
* renamed: spec/unit/crypto.spec.js -> spec/unit/crypto.spec.ts
* fix ts in crypto.spec
* fix some strict errors
2022-07-29 09:11:01 +00:00