mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat(enterprise): add SSO enforcement mode with break-glass admin
This commit is contained in:
@@ -21,6 +21,7 @@ import { shouldRunStartupCleanup } from "./lib/cleanup.js";
|
||||
import { buildCsp } from "./lib/csp.js";
|
||||
import { ensureAiDirs, recoverInterruptedInstalls } from "./lib/feature-status.js";
|
||||
|
||||
import { getSettingString } from "./lib/settings-helpers.js";
|
||||
import { requirePermission } from "./permissions.js";
|
||||
import {
|
||||
authMiddleware,
|
||||
@@ -438,6 +439,8 @@ app.get("/api/v1/config/auth", async () => {
|
||||
config.samlLoginUrl = "/api/auth/saml/login";
|
||||
}
|
||||
|
||||
config.ssoEnforced = (await getSettingString("ssoEnforcement", "false")) === "true";
|
||||
|
||||
return config;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user