[PR #4299] [MERGED] Closes #2328: External user authentication #12810

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/4299
Author: @jeremystretch
Created: 2/28/2020
Status: Merged
Merged: 3/11/2020
Merged by: @jeremystretch

Base: develop-2.8Head: 2328-external-authentication


📝 Commits (5)

  • 5dc956f First stab at external authentication support
  • 0dc3a72 Merge branch 'develop-2.8' into 2328-external-authentication
  • 8c6d356 Remote auth cleanup
  • 90144cc Add tests for remote authentication configuration
  • 7ffc001 Tweak settings/middleware to support testing; improve tests

📊 Changes

6 files changed (+292 additions, -4 deletions)

View changed files

📝 docs/configuration/optional-settings.md (+48 -0)
📝 netbox/netbox/configuration.example.py (+8 -0)
📝 netbox/netbox/settings.py (+11 -3)
netbox/netbox/tests/test_authentication.py (+159 -0)
📝 netbox/utilities/auth_backends.py (+46 -1)
📝 netbox/utilities/middleware.py (+20 -0)

📄 Description

Fixes: #2328

Introduces a set of new configuration parameters that can be used to support external user authentication:

  • REMOTE_AUTH_ENABLED = False
  • REMOTE_AUTH_BACKEND = 'utilities.auth_backends.RemoteUserBackend'
  • REMOTE_AUTH_HEADER = 'HTTP_REMOTE_USER'
  • REMOTE_AUTH_AUTO_CREATE_USER = True
  • REMOTE_AUTH_DEFAULT_GROUPS = []
  • REMOTE_AUTH_DEFAULT_PERMISSIONS = []

🔄 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/4299 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 2/28/2020 **Status:** ✅ Merged **Merged:** 3/11/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop-2.8` ← **Head:** `2328-external-authentication` --- ### 📝 Commits (5) - [`5dc956f`](https://github.com/netbox-community/netbox/commit/5dc956fbe11718dff7f4b4b6284cdaef7ddc2b50) First stab at external authentication support - [`0dc3a72`](https://github.com/netbox-community/netbox/commit/0dc3a7291210b535685c56d66d84b1d0b4790e0e) Merge branch 'develop-2.8' into 2328-external-authentication - [`8c6d356`](https://github.com/netbox-community/netbox/commit/8c6d35645d0a86bd741d864c270b1d489d7d7409) Remote auth cleanup - [`90144cc`](https://github.com/netbox-community/netbox/commit/90144ccd9abca5bc416835399bb2e783ffba43f8) Add tests for remote authentication configuration - [`7ffc001`](https://github.com/netbox-community/netbox/commit/7ffc00159e978e6ab0aeb1eac1451e78181b46ab) Tweak settings/middleware to support testing; improve tests ### 📊 Changes **6 files changed** (+292 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `docs/configuration/optional-settings.md` (+48 -0) 📝 `netbox/netbox/configuration.example.py` (+8 -0) 📝 `netbox/netbox/settings.py` (+11 -3) ➕ `netbox/netbox/tests/test_authentication.py` (+159 -0) 📝 `netbox/utilities/auth_backends.py` (+46 -1) 📝 `netbox/utilities/middleware.py` (+20 -0) </details> ### 📄 Description ### Fixes: #2328 Introduces a set of new configuration parameters that can be used to support external user authentication: * REMOTE_AUTH_ENABLED = False * REMOTE_AUTH_BACKEND = 'utilities.auth_backends.RemoteUserBackend' * REMOTE_AUTH_HEADER = 'HTTP_REMOTE_USER' * REMOTE_AUTH_AUTO_CREATE_USER = True * REMOTE_AUTH_DEFAULT_GROUPS = [] * REMOTE_AUTH_DEFAULT_PERMISSIONS = [] --- <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 22:23:44 +01:00
adam closed this issue 2025-12-29 22:23:45 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12810