diff --git a/server/utils/oidc-provider.ts b/server/utils/oidc-provider.ts index 187f8a8..f17db22 100644 --- a/server/utils/oidc-provider.ts +++ b/server/utils/oidc-provider.ts @@ -43,6 +43,20 @@ export async function getOidcProvider() { response_types: ["code"], token_endpoint_auth_method: "client_secret_post", }, + { + // coop.cool — second relying party. Curated Learn admin signs in here. + client_id: process.env.COOP_COOL_OIDC_CLIENT_ID || "coop-cool", + client_secret: process.env.COOP_COOL_OIDC_CLIENT_SECRET || "", + redirect_uris: [ + "https://coop.cool/auth/callback", + // Local development callback (coop.cool dev server runs on :3004) + "http://localhost:3004/auth/callback", + ], + post_logout_redirect_uris: ["https://coop.cool", "http://localhost:3004"], + grant_types: ["authorization_code", "refresh_token"], + response_types: ["code"], + token_endpoint_auth_method: "client_secret_post", + }, ], claims: {