netbox-community/netbox-chart

Integrate Okta with NetBox using socialAuth

Conacious opened this issue · 2 comments

Hi guys,
I'm trying to integrate Okta with NetBox using the social-auth python library.

I followed python-social-auth docs https://python-social-auth.readthedocs.io/en/latest/backends/okta.html and
NetBox docs to configure it https://github.com/bootc/netbox-chart/blob/develop/docs/auth.md

After setting everything I can see the login button when I access NetBox:
image

However, when I click I get the following error:

image

Does anyone know how to modify the django.urls using the helm chart? Maybe I'm missing something but I'm a bit stuck in this step.

Thank you guys.

got a similar error; this is mostly due to bad okta client id or auth server being set. refer: https://support.okta.com/help/s/article/400-Bad-Request-when-redirecting-to-the-authorize-endpoint-with-no-error-description?language=en_US

bootc commented

I don't think there's a way of influencing the django.urls / urlpatterns through the configuration. The social_django should be setting up the URLs correctly to point back at itself; if it's not I'd go asking for help from the NetBox and/or Python Social Auth projects.