Adds a new is_oauth_registration_enabled setting so administrators can allow OAuth-based self-registration while keeping general (password-based) registration disabled. Closes #8042.
is_oauth_registration_enabled boolean column to instance_settings (default: false)is_registration_enabled OR is_oauth_registration_enabled is true| General Registration | OAuth Registration | Result |
|---|---|---|
| ✓ Enabled | Any | Anyone can register (password + OAuth) |
| ✗ Disabled | ✓ Enabled | Only OAuth users can self-register |
| ✗ Disabled | ✗ Disabled | No self-registration (admin creates accounts) |
Existing OAuth users can always log in regardless of these settings — these only affect new account creation.
Verified the OAuth callback logic handles all three scenarios correctly. The setting follows the same pattern as existing boolean settings (is_registration_enabled, do_not_track, etc.).
/claim #8042
Guillem Prada Torres
@GPradaT
Kewyn Ferreira
@kewynf