OpenIdConnectAuth #1414
Unanswered
ciril88
asked this question in
Getting Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I spent few days solving to netbox work with OpenIdConnectAuth (everything running with podman) . But i dont know how and where to define:
REMOTE_AUTH_ENABLED = 'True'
REMOTE_AUTH_BACKEND = 'social_core.backends.open_id_connect.OpenIdConnectAuth'
This to env i define in netbox.yaml or in /opt/netbox/netbox/netbox/configuration.py (shared volume). And works. Picture:

But then there start problems:
TypeError at /oauth/login/oidc/
unsupported operand type(s) for +: 'NoneType' and 'str'
If i manualy edit /opt/netbox/venv/lib/python3.12/site-packages/social_core/backends/open_id_connect.py
and change OIDC_ENDPOINT = 'None' to OIDC_ENDPOINT = 'https://login.xxxx'
Then redirect me to oidc endpoint, i successfully login, then should redirect me to netbox but i get error:
error | "invalid_client"
error_description | "The client id supplied is invalid"
here is URL: https://login.xxxx/authorize?client_id=None&redirect_uri=https://xxxxxx/oauth/complete/oidc/&state=qBYI7fnp12oqmhK6uXxg3nPEc0EMWkCa&response_type=code&nonce=h3rnp0FB7QC70BR0QfvGVRhm6Q5tfBKEKSr6yl0Mnl41DvqvXrEMWzSmVMfBdGRR&scope=openid+profile+email
SOCIAL_AUTH_OIDC_ENDPOINT = 'https://login.xxxx'
SOCIAL_AUTH_OIDC_KEY = "key"
SOCIAL_AUTH_OIDC_SECRET = "secret"
I have feeling that
SOCIAL_AUTH_OIDC_KEY = "key"
SOCIAL_AUTH_OIDC_SECRET = "secret"
are not readed from settings.py neither from open_id_connect.py
If anyone know solution please let me know.
Best regards,
Ciril
Beta Was this translation helpful? Give feedback.
All reactions