Skip to content

Commit

Permalink
Gather validated OIDC config during autodiscovery (#27047)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Feb 23, 2024
1 parent 465131a commit 282d717
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/vector/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ async function verifyServerConfig(): Promise<IConfigOptions> {
}
}

validatedConfig = AutoDiscoveryUtils.buildValidatedConfigFromDiscovery(serverName, discoveryResult, true);
validatedConfig = await AutoDiscoveryUtils.buildValidatedConfigFromDiscovery(serverName, discoveryResult, true);
} catch (e) {
const { hsUrl, isUrl, userId } = await Lifecycle.getStoredSessionVars();
if (hsUrl && userId) {
Expand Down
3 changes: 3 additions & 0 deletions test/app-tests/loading-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ describe("loading:", function () {
// Pass the liveliness checks
httpBackend.when("GET", "/versions").respond(200, { versions: SERVER_SUPPORTED_MATRIX_VERSIONS });
httpBackend.when("GET", "/_matrix/identity/v2").respond(200, {});
httpBackend
.when("GET", "/_matrix/client/unstable/org.matrix.msc2965/auth_issuer")
.respond(404, { errcode: "M_UNRECOGNIZED", error: "Unrecognized request" });

return sleep(1)
.then(async () => {
Expand Down

0 comments on commit 282d717

Please sign in to comment.