mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 14:56:01 +00:00
Gate automatic account creation on OIDC login behind a new OIDC_ALLOW_REGISTRATION environment variable. Defaults to true, preserving the current auto-provisioning behavior; set it to false to run OIDC in an "existing users only" mode, where a login from an email without an existing RomM account is rejected with a 403 instead of silently creating one. Existing users are unaffected either way. Adds the config constant, env.template and docs entries, and tests covering the enabled/disabled and existing-user paths. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>