[PR #13003] [CLOSED] Allow users to define the LOGIN_URL. #14091

Closed
opened 2025-12-29 23:22:27 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/13003
Author: @slyngshede
Created: 6/26/2023
Status: Closed

Base: developHead: ALLOW_LOGIN_URL


📝 Commits (1)

  • 3e13b8b Allow users to define the LOGIN_URL.

📊 Changes

1 file changed (+5 additions, -2 deletions)

View changed files

📝 netbox/netbox/settings.py (+5 -2)

📄 Description

Fixes: #13002 #11672

If you rely on a single SSO provider, it can
be confusing for users to see the username/password login with the SSO provider below. By allowing the LOGIN_URL to be overwritten users can be redirect
directly to the SSO provider.

Simply check if the LOGIN_URL has already been defined, if not fallback to f'/{BASE_PATH}login/'


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/13003 **Author:** [@slyngshede](https://github.com/slyngshede) **Created:** 6/26/2023 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `ALLOW_LOGIN_URL` --- ### 📝 Commits (1) - [`3e13b8b`](https://github.com/netbox-community/netbox/commit/3e13b8b4c4de32435fb2746d73bc4108d79c29a0) Allow users to define the LOGIN_URL. ### 📊 Changes **1 file changed** (+5 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/settings.py` (+5 -2) </details> ### 📄 Description ### Fixes: #13002 #11672 If you rely on a single SSO provider, it can be confusing for users to see the username/password login with the SSO provider below. By allowing the LOGIN_URL to be overwritten users can be redirect directly to the SSO provider. Simply check if the LOGIN_URL has already been defined, if not fallback to f'/{BASE_PATH}login/' --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:22:27 +01:00
adam closed this issue 2025-12-29 23:22:27 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14091