netbox-community / netbox-chart

A Helm chart for NetBox
https://netbox.readthedocs.io/
Apache License 2.0
258 stars 153 forks source link

Integrate Okta with NetBox using socialAuth #156

Closed Conacious closed 1 year ago

Conacious commented 1 year ago

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.

imdhruva commented 1 year ago

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 1 year ago

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.