netbox/netbox/account
bctiemann f69de12c6d
Closes: #15842 - Option to hide local login form if SSO is in use (#18924)
Closes: #15842

Branched from #18145 by @tobiasge

Provides a new LOGIN_FORM_HIDDEN setting which allows the administrator to hide the local login form, intended only to be used when SSO is used exclusively for authentication. Note that this means local login will be impossible in the event of SSO provider issues, and can be remedied only through a change to the application config and a restart of the service.


* #15842 - Hide login form

This doesn't implement the full solution proposed in #15842 but enables
administrators to hide the login form when users should only login with a SSO
provider. To prevent a complete lockout when the SSO provider is having
issues the GET parameter `skipsso` can be added to the login URL to show
the form regardless.

* Remove skipsso backdoor

* Add warning

---------

Co-authored-by: Tobias Genannt <tobias.genannt@qbeyond.de>
2025-03-17 12:02:18 -05:00
..
migrations Fixes: #18808 - Fix incorrect dependencies on squashed migrations (#18827) 2025-03-07 10:20:34 -08:00
__init__.py Closes #13309: Introduce the account app (#13310) 2023-07-31 09:22:04 -04:00
models.py Closes #13427: Public model registration (#14152) 2023-11-03 10:32:59 -04:00
tables.py Closes #15618: Always use ISO 8601 date & time formatting (#15737) 2024-04-17 11:46:47 -04:00
urls.py Closes #15621: User notifications (#16800) 2024-07-15 14:24:11 -04:00
views.py Closes: #15842 - Option to hide local login form if SSO is in use (#18924) 2025-03-17 12:02:18 -05:00