diff --git a/server/src/controllers/auth.controller.ts b/server/src/controllers/auth.controller.ts index f7173b9..bef1ce9 100644 --- a/server/src/controllers/auth.controller.ts +++ b/server/src/controllers/auth.controller.ts @@ -350,7 +350,7 @@ async function getOidcClient() { export const getSsoConfig = async (req: Request, res: Response) => { res.json({ - enabled: !!(process.env.SSO_CLIENT_SECRET && process.env.SSO_CLIENT_ID && process.env.SSO_AUTHORITY) + enabled: !!(process.env.SSO_CLIENT_SECRET && process.env.SSO_CLIENT_SECRET.trim() !== "") }); };