Remove skipsso backdoor

This commit is contained in:
Brian Tiemann 2025-03-17 10:43:58 -04:00
parent a5ebce5e36
commit 6ceceb5c58
2 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ The lifetime (in seconds) of the authentication cookie issued to a NetBox user u
Default: False
Option to hide the login form when only SSO authentication is in use. Appending `skipsso` as GET parameter shows the login form in case there is a problem with the SSO provider.
Option to hide the login form when only SSO authentication is in use.
---

View File

@ -89,7 +89,7 @@ class LoginView(View):
if request.user.is_authenticated:
logger = logging.getLogger('netbox.auth.login')
return self.redirect_to_next(request, logger)
login_form_hidden = settings.LOGIN_FORM_HIDDEN and "skipsso" not in request.GET
login_form_hidden = settings.LOGIN_FORM_HIDDEN
return render(request, self.template_name, {
'form': form,