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
All checks were successful
Build & Push Docker Image to Gitea Registry / build-and-push (push) Successful in 2m35s
This commit is contained in:
@@ -350,7 +350,7 @@ async function getOidcClient() {
|
|||||||
|
|
||||||
export const getSsoConfig = async (req: Request, res: Response) => {
|
export const getSsoConfig = async (req: Request, res: Response) => {
|
||||||
res.json({
|
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() !== "")
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user