[PR #10137] [MERGED] Fix SSO signon for SAML with idp #13565

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/10137
Author: @arthanson
Created: 8/24/2022
Status: Merged
Merged: 8/25/2022
Merged by: @jeremystretch

Base: developHead: art-10135


📝 Commits (5)

📊 Changes

3 files changed (+30 additions, -8 deletions)

View changed files

📝 netbox/netbox/authentication.py (+4 -0)
📝 netbox/templates/login.html (+3 -3)
📝 netbox/users/views.py (+23 -5)

📄 Description

Fixes: #10135

SAML signin usually requires passing an idp in the query param, this updates so if doing SAML sign-in and have SOCIAL_AUTH_SAML_ENABLED_IDPS defined it will add those to the sing-in (see screenshot). Also refactors the auth_backends context to be more extensible.

saml


🔄 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/10137 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 8/24/2022 **Status:** ✅ Merged **Merged:** 8/25/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `art-10135` --- ### 📝 Commits (5) - [`12354ae`](https://github.com/netbox-community/netbox/commit/12354ae5c6ff4d184a97a939a294d20ec8a8721e) #10135 add idp to saml login - [`741b7f8`](https://github.com/netbox-community/netbox/commit/741b7f8ffceb705f04026fe51dd79b4e5d0b6ab0) #10135 add idp to saml login - [`d223348`](https://github.com/netbox-community/netbox/commit/d22334870234807914ad88e45c8bd200a5cca7dc) #10135 add idp to saml login - [`63c1b73`](https://github.com/netbox-community/netbox/commit/63c1b7380ba509328a9621e823e3f664c10c8c3f) Merge branch 'develop' into art-10135 - [`7fdef17`](https://github.com/netbox-community/netbox/commit/7fdef17957c15e55274152411a5089abcc3a5d18) #10135 refactor / cleanup ### 📊 Changes **3 files changed** (+30 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/authentication.py` (+4 -0) 📝 `netbox/templates/login.html` (+3 -3) 📝 `netbox/users/views.py` (+23 -5) </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: #10135 <!-- Please include a summary of the proposed changes below. --> SAML signin usually requires passing an idp in the query param, this updates so if doing SAML sign-in and have SOCIAL_AUTH_SAML_ENABLED_IDPS defined it will add those to the sing-in (see screenshot). Also refactors the auth_backends context to be more extensible. ![saml](https://user-images.githubusercontent.com/99642/186510857-cd7177d1-93bc-4963-a5d5-1a85382edf8f.png) --- <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:36 +01:00
adam closed this issue 2025-12-29 23:19:36 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13565