Unable to log in using remote auth after upgrade #9547

Closed
opened 2025-12-29 20:51:18 +01:00 by adam · 3 comments
Owner

Originally created by @johnmc-ucdavis on GitHub (Apr 26, 2024).

Deployment Type

Self-hosted

NetBox Version

v3.7.6

Python Version

3.10

Steps to Reproduce

Attempt to log in to NetBox using remote login. Remote login completes but user is not logged in.

Expected Behavior

User is logged in.

Observed Behavior

User is not logged in. Users can log in using local passwords.

REMOTE_USER variable is set. We have also tried changing it to HTTP_REMOTE_USER.

Same remote auth is working for several other web apps. It was working in v3.7.5 prior to upgrade.

Two users were able to remain logged in via. remote auth. We had one of these users log out and now this user does not get logged in when using remote auth.

Originally created by @johnmc-ucdavis on GitHub (Apr 26, 2024). ### Deployment Type Self-hosted ### NetBox Version v3.7.6 ### Python Version 3.10 ### Steps to Reproduce Attempt to log in to NetBox using remote login. Remote login completes but user is not logged in. ### Expected Behavior User is logged in. ### Observed Behavior User is not logged in. Users can log in using local passwords. `REMOTE_USER` variable is set. We have also tried changing it to `HTTP_REMOTE_USER`. Same remote auth is working for several other web apps. It was working in v3.7.5 prior to upgrade. Two users were able to remain logged in via. remote auth. We had one of these users log out and now this user does not get logged in when using remote auth.
adam added the type: bugstatus: under review labels 2025-12-29 20:51:18 +01:00
adam closed this issue 2025-12-29 20:51:18 +01:00
Author
Owner

@jeremystretch commented on GitHub (Apr 26, 2024):

@johnmc-ucdavis this sounds like it's likely the same root issue as #15811. Please try downgrading gunicorn and let us know if that resolves the issue:

pip3 install gunicorn==21.2.0

(Don't forget to restart the NetBox service afterward!)

@jeremystretch commented on GitHub (Apr 26, 2024): @johnmc-ucdavis this sounds like it's likely the same root issue as #15811. Please try downgrading gunicorn and let us know if that resolves the issue: ``` pip3 install gunicorn==21.2.0 ``` (Don't forget to restart the NetBox service afterward!)
Author
Owner

@johnmc-ucdavis commented on GitHub (Apr 26, 2024):

That was indeed the problem. Thanks!

@johnmc-ucdavis commented on GitHub (Apr 26, 2024): That was indeed the problem. Thanks!
Author
Owner

@apollo13 commented on GitHub (Apr 28, 2024):

Instead of down-grading you can probably configure header-map (https://docs.gunicorn.org/en/stable/settings.html#header-map) accordingly, but be aware of the downsides.

@apollo13 commented on GitHub (Apr 28, 2024): Instead of down-grading you can probably configure `header-map` (https://docs.gunicorn.org/en/stable/settings.html#header-map) accordingly, but be aware of the downsides.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9547