From 7ba2f2662403d635f30ac28cb5a924a0f5954c35 Mon Sep 17 00:00:00 2001 From: Ajay Bura <32841439+ajbura@users.noreply.github.com> Date: Wed, 10 Aug 2022 19:53:18 +0530 Subject: [PATCH] setup oidc for thirdroom --- src/lib.ts | 2 ++ src/matrix/net/OidcApi.ts | 7 ++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/lib.ts b/src/lib.ts index 6363cd87..79734127 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -23,6 +23,8 @@ export {Client, LoadStatus, LoginFailure} from "./matrix/Client.js"; export {RoomStatus} from "./matrix/room/common"; export {AttachmentUpload} from "./matrix/room/AttachmentUpload"; export {CallIntent} from "./matrix/calls/callEventTypes"; +export {OidcApi} from "./matrix/net/OidcApi"; +export {OIDCLoginMethod} from "./matrix/login/OIDCLoginMethod"; // export everything needed to observe state events on all rooms using session.observeRoomState export type {RoomStateHandler} from "./matrix/room/state/types"; export type {MemberChange} from "./matrix/room/members/RoomMember"; diff --git a/src/matrix/net/OidcApi.ts b/src/matrix/net/OidcApi.ts index ca2e2739..d18014ca 100644 --- a/src/matrix/net/OidcApi.ts +++ b/src/matrix/net/OidcApi.ts @@ -62,11 +62,8 @@ interface ClientConfig { // These are statically configured OIDC client IDs for particular issuers: const clientIds: Record = { - "https://dev-6525741.okta.com/": { - client_id: "0oa5x44w64wpNsxi45d7", - }, - "https://keycloak-oidc.lab.element.dev/realms/master/": { - client_id: "hydrogen-oidc-playground" + "https://id.thirdroom.io/realms/thirdroom/": { + client_id: "thirdroom" }, };