[PR #9600] [MERGED] Fixes #8854: Remote auth default groups added to new remote auth users #13492

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/9600
Author: @huntabyte
Created: 6/24/2022
Status: Merged
Merged: 6/28/2022
Merged by: @jeremystretch

Base: developHead: issue-8854


📝 Commits (2)

  • d8b4005 Fixes #8854: Remote auth default groups added to new remote auth users
  • 9b91c2a syntax: Removed dev imports

📊 Changes

2 files changed (+36 additions, -0 deletions)

View changed files

📝 netbox/netbox/authentication.py (+23 -0)
📝 netbox/netbox/settings.py (+13 -0)

📄 Description

Fixes: #8854

Added a custom pipeline handler function per python-social-auth docs

This pipeline handler assigns the default group(s) to remote auth users. Successfully tested with Microsoft Azure AD, however, there is nothing particular related to Azure AD in this configuration.


🔄 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/9600 **Author:** [@huntabyte](https://github.com/huntabyte) **Created:** 6/24/2022 **Status:** ✅ Merged **Merged:** 6/28/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `issue-8854` --- ### 📝 Commits (2) - [`d8b4005`](https://github.com/netbox-community/netbox/commit/d8b40056b52d6c12c1e37160f0e86f0730658d89) Fixes #8854: Remote auth default groups added to new remote auth users - [`9b91c2a`](https://github.com/netbox-community/netbox/commit/9b91c2a88665f3621c05ae81f52ab2a8fed60c7f) syntax: Removed dev imports ### 📊 Changes **2 files changed** (+36 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/authentication.py` (+23 -0) 📝 `netbox/netbox/settings.py` (+13 -0) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: #8854 <!-- Please include a summary of the proposed changes below. --> Added a custom pipeline handler function per python-social-auth [docs](https://python-social-auth.readthedocs.io/en/latest/configuration/django.html) This pipeline handler assigns the default group(s) to remote auth users. Successfully tested with Microsoft Azure AD, however, there is nothing particular related to Azure AD in this configuration. --- <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:19:11 +01:00
adam closed this issue 2025-12-29 23:19:11 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13492