Hey Team,

I’ve implemented a way to restrict loging and registration to OAuth only. This is usefull if you have a private instance and you want to ensure eveyone uses Google Workspace etc.

Changes:

  • Added is_oauth_only flag to instance_settings (defualt false).
  • Toggle in Settings > Advanced.
  • Blocked password login if OAuth providers are enabled and is_oauth_only is true (except for root user at UID 0 to avoid lockouts).
  • Allowed OAuth self-reg even if general registration is off, when is_oauth_only is true.

I’ve verified the paths, and it should work fine. Let me know what you think!

/claim #8042

Claim

Total prize pool $50
Total paid $0
Status Pending
Submitted April 06, 2026
Last updated April 06, 2026

Contributors

JY

jyoti369

@jyoti369

100%

Sponsors

KE

Kewyn Ferreira

@kewynf

$50