Okta OIDC integration requires additional Python packages #7077

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

Originally created by @skoobasteeve on GitHub (Oct 5, 2022).

Originally assigned to: @arthanson on GitHub.

NetBox version

v3.3.5

Python version

3.10

Steps to Reproduce

  1. Install Netbox on Ubuntu 22.04 by following the official documentation.
  2. Configure the Okta integration by following the official documentation.
  3. Try to log in via Okta

Expected Behavior

Netbox logs in successfully.

Observed Behavior

A Django error page loads ands shows an error:
ModuleNotFoundError: No module named 'jose'

I'm able to resolve the issue by installing python-jose using the below steps:

sudo -i
source /opt/netbox/venv/bin/activate
sudo pip install python-jose[openidconnect]
sudo pip install python-jose[cryptography]
deactivate
sudo systemctl restart netbox netbox-rq

It's possible that those commands are redundant, but either way I needed python-jose to make Okta work. After installing Okta sign-in works without issue. Perhaps this could be resolved in the future by adding python-jose to the requirements.txt? Let me know if you need any more info.

Thank you for all your work!

Originally created by @skoobasteeve on GitHub (Oct 5, 2022). Originally assigned to: @arthanson on GitHub. ### NetBox version v3.3.5 ### Python version 3.10 ### Steps to Reproduce 1. Install Netbox on Ubuntu 22.04 by following the official documentation. 2. Configure the Okta integration by following the official documentation. 3. Try to log in via Okta ### Expected Behavior Netbox logs in successfully. ### Observed Behavior A Django error page loads ands shows an error: `ModuleNotFoundError: No module named 'jose'` I'm able to resolve the issue by installing `python-jose` using the below steps: ``` sudo -i source /opt/netbox/venv/bin/activate sudo pip install python-jose[openidconnect] sudo pip install python-jose[cryptography] deactivate sudo systemctl restart netbox netbox-rq ``` It's possible that those commands are redundant, but either way I needed `python-jose` to make Okta work. After installing Okta sign-in works without issue. Perhaps this could be resolved in the future by adding python-jose to the requirements.txt? Let me know if you need any more info. Thank you for all your work!
adam added the type: bugstatus: accepted labels 2025-12-29 20:18:57 +01:00
adam closed this issue 2025-12-29 20:18:57 +01:00
Author
Owner

@skoobasteeve commented on GitHub (Oct 12, 2022):

Amazing, thank you @jeremystretch

@skoobasteeve commented on GitHub (Oct 12, 2022): Amazing, thank you @jeremystretch
Author
Owner

@jeremystretch commented on GitHub (Oct 12, 2022):

This was all @arthanson actually 🙂

@jeremystretch commented on GitHub (Oct 12, 2022): This was all @arthanson actually :slightly_smiling_face:
Author
Owner

@skoobasteeve commented on GitHub (Oct 12, 2022):

@arthanson Thank you both for the quick response!

@skoobasteeve commented on GitHub (Oct 12, 2022): @arthanson Thank you both for the quick response!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7077