fix: allow SSO with only SSO_CLIENT_SECRET configured, since other env vars have defaults
All checks were successful
Build & Push Docker Image to Gitea Registry / build-and-push (push) Successful in 2m35s

This commit is contained in:
Kroonk
2026-05-21 11:23:05 +02:00
parent f31e4e0800
commit a21e2df6c4

View File

@@ -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() !== "")
});
};