mirror of
https://github.com/iflytek/skillhub.git
synced 2026-09-22 00:31:21 +00:00
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.
10 lines
547 B
Text
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}"
|
|
};
|