skillhub/web/runtime-config.js.template
jangrui eb8dc031e7 feat(auth): add CAS-based SSO login support
Add backend CAS callback endpoints (redirect → validate ticket → establish
session), frontend SSO login button, and runtime config plumbing. All SSO
server URLs are externalized via SsoProperties with zero company-specific
defaults.

Also fix a pre-existing bug in web/docker-entrypoint.d/30-runtime-config.sh
where auth-related runtime config env vars were not being substituted into
runtime-config.js.
2026-05-16 03:27:15 +08:00

10 lines
547 B
Text

window.__SKILLHUB_RUNTIME_CONFIG__ = {
apiBaseUrl: "${SKILLHUB_WEB_API_BASE_URL}",
appBaseUrl: "${SKILLHUB_PUBLIC_BASE_URL}",
authDirectEnabled: "${SKILLHUB_WEB_AUTH_DIRECT_ENABLED}",
authDirectProvider: "${SKILLHUB_WEB_AUTH_DIRECT_PROVIDER}",
authSessionBootstrapEnabled: "${SKILLHUB_WEB_AUTH_SESSION_BOOTSTRAP_ENABLED}",
authSessionBootstrapProvider: "${SKILLHUB_WEB_AUTH_SESSION_BOOTSTRAP_PROVIDER}",
authSessionBootstrapAuto: "${SKILLHUB_WEB_AUTH_SESSION_BOOTSTRAP_AUTO}",
authSsoEnabled: "${SKILLHUB_WEB_AUTH_SSO_ENABLED}"
};