mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
Each login method has its own section: LDAP, OAuth2 (OpenID Connect and Oracle OIM), CAS and Header login are new or complete, and the Login pane gets PASSWORD_LOGIN_ENABLED and ACCOUNTS_COMMON_LOGIN_EXPIRATION_IN_DAYS. models/lib/authConfigCatalog.js lists all 103 variables; server/lib/ authConfig.js resolves each one at run time (Admin Panel value first, then the environment variable) for the app and, through globalThis.__wekanAuthEnv, for the wekan-ldap, wekan-oidc and wekan-accounts-cas packages. OAuth2 and CAS service configurations and LDAP background sync are reapplied when their settings are saved. Passwords and client secrets (LDAP_AUTHENTIFICATION_PASSWORD, OAUTH2_SECRET) never reach the browser: the page learns only whether one is set and where it comes from. Other values have credentials written inside a URL masked on the server, and a URL field refuses them. Fixed on the way: - The Admin Panel LDAP overrides never applied. The bridge read Settings with a server-side findOne(), which Meteor 3 refuses; the error was swallowed and the environment used. The settings are now held in an observed cache. - LDAP Test connection never existed on the server (testConnection.js was not imported) and used the synchronous Meteor.user(). - PROPAGATE_OIDC_DATA=false turned the feature on. - CAS read only the misspelled CASE_VALIDATE_URL; CAS_VALIDATE_URL now works and the old name still does. - snap help named three group-filter keys snap set does not know. Every catalog variable is now listed in the Dockerfile, the docker-compose files, snap config and help, and start-wekan.sh/.bat; 14 were missing. tests/authConfigCatalog.test.cjs pins resolution, secrets, input validation, platform coverage, and - across the whole tree - that no code reads a login variable outside the catalog or straight from process.env, and that no server code calls the synchronous Settings.findOne() or Meteor.user(). tests/playwright/specs/admin-login-env-overrides.e2e.js drives the pages. Thanks to xet7 !