unable to "overwrite" SOCIAL_AUTH_PIPELINE from settings.py via configuration.py #6652

Closed
opened 2025-12-29 19:43:31 +01:00 by adam · 2 comments
Owner

Originally created by @HolySephi on GitHub (Jul 13, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.2.6

Python version

3.8

Steps to Reproduce

Try to set up an own SOCIAL_AUTH_PIPELINE in configuration.py

Expected Behavior

Own SOCIAL_AUTH_PIPELINE is run.

Observed Behavior

The default SOCIAL_AUTH_PIPELINE from settings.py is always run (or overwrites/overruns the one from configuration.py)

I commented this in the pull request creating this problem:
https://github.com/netbox-community/netbox/pull/9600

Originally created by @HolySephi on GitHub (Jul 13, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.2.6 ### Python version 3.8 ### Steps to Reproduce Try to set up an own SOCIAL_AUTH_PIPELINE in configuration.py ### Expected Behavior Own SOCIAL_AUTH_PIPELINE is run. ### Observed Behavior The default SOCIAL_AUTH_PIPELINE from settings.py is always run (or overwrites/overruns the one from configuration.py) I commented this in the pull request creating this problem: https://github.com/netbox-community/netbox/pull/9600
adam added the type: bugstatus: accepted labels 2025-12-29 19:43:31 +01:00
adam closed this issue 2025-12-29 19:43:31 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jul 15, 2022):

I'm going to move the definition of SOCIAL_AUTH_PIPELINE before the dynamic import, so that a user's custom definition will override it. However, it's worth nothing that the user will still need to define the entire pipeline in configuration.py (as opposed to appending to or modifying the default).

@jeremystretch commented on GitHub (Jul 15, 2022): I'm going to move the definition of `SOCIAL_AUTH_PIPELINE` before the dynamic import, so that a user's custom definition will override it. However, it's worth nothing that the user will still need to define the _entire_ pipeline in `configuration.py` (as opposed to appending to or modifying the default).
Author
Owner

@HolySephi commented on GitHub (Jul 25, 2022):

Thanks a lot - defining my own SOCIAL_AUTH_PIPELINE in configuration.py is working again :-)

@HolySephi commented on GitHub (Jul 25, 2022): Thanks a lot - defining my own SOCIAL_AUTH_PIPELINE in configuration.py is working again :-)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6652