Add a new “OAuth Registration Allowed” toggle in Settings > Advanced that allows new users to register via OAuth providers even when general (password-based) registration is disabled.
This addresses the use case where admins want to control access via an identity provider (e.g., Authentik) without opening up password-based self-registration.
Files changed:
database/migrations/... — adds is_oauth_registration_enabled boolean column to instance_settings (default: false)app/Http/Controllers/OauthController.php — checks the new setting in the OAuth callback; allows user creation if either is_registration_enabled or is_oauth_registration_enabled is trueapp/Livewire/Settings/Advanced.php — wires up the new setting in the Advanced settings componentresources/views/livewire/settings/advanced.blade.php — adds the checkbox toggle in the UIapp/Providers/FortifyServiceProvider.php — passes the new flag to the login viewresources/views/auth/login.blade.php — shows a hint when OAuth registration is available but general registration is disabledlang/en.json — adds the auth.oauth_registration_hint translation stringI do not have a running Coolify dev environment to record a screen recording at this time. Happy to provide one if needed before merge.
php artisan migrate to add the new is_oauth_registration_enabled column/register directly. Verify it redirects to login (password registration is still blocked)[!IMPORTANT]
- I have read and understood the contributor guidelines. If I have failed to follow any guideline, I understand that this PR may be closed without review.
- I have tested the changes thoroughly and am confident that they will work as expected without issues when the maintainer tests them
/claim #8042
Rshan
@Rhan2020
Kewyn Ferreira
@kewynf