Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Okta OIDC integration requires additional Python packages #10575

Closed
skoobasteeve opened this issue Oct 5, 2022 · 3 comments · Fixed by #10623
Closed

Okta OIDC integration requires additional Python packages #10575

skoobasteeve opened this issue Oct 5, 2022 · 3 comments · Fixed by #10623
Assignees
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@skoobasteeve
Copy link

skoobasteeve commented Oct 5, 2022

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!

@skoobasteeve skoobasteeve added the type: bug A confirmed report of unexpected behavior in the application label Oct 5, 2022
@jeremystretch jeremystretch added the status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation label Oct 5, 2022
@arthanson arthanson self-assigned this Oct 11, 2022
@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels Oct 12, 2022
jeremystretch added a commit that referenced this issue Oct 12, 2022
@skoobasteeve
Copy link
Author

Amazing, thank you @jeremystretch

@jeremystretch
Copy link
Member

This was all @arthanson actually 🙂

@skoobasteeve
Copy link
Author

@arthanson Thank you both for the quick response!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants