OIDC Login not working #11214

Closed
opened 2025-12-29 21:42:01 +01:00 by adam · 1 comment
Owner

Originally created by @noahtrr on GitHub (May 23, 2025).

Deployment Type

Self-hosted

NetBox Version

4.3.1-Docker-3.3.0

Python Version

3.12

Steps to Reproduce

add following env vars to docker-compose.override.yml

environment:
REMOTE_AUTH_ENABLED: 'true'
REMOTE_AUTH_BACKEND: 'social_core.backends.open_id_connect.OpenIdConnectAuth'
SOCIAL_AUTH_OIDC_OIDC_ENDPOINT: 'https://auth.example.com/application/o/netbox/'
SOCIAL_AUTH_OIDC_KEY: ''
SOCIAL_AUTH_OIDC_SECRET: ''
SOCIAL_AUTH_OIDC_SCOPE: 'openid, profile, email, roles'
LOGOUT_REDIRECT_URL: 'https://auth.example.com/application/o/netbox/end-session/'

Expected Behavior

The OIDC login to work.

Observed Behavior

It doesn't.

Also, nowhere in the wiki does it state on how to add the OIDC feature, the Authentik documentation for this isn't really helping aswell.

If anyone here has a more comprehensible guide please tell me.

Originally created by @noahtrr on GitHub (May 23, 2025). ### Deployment Type Self-hosted ### NetBox Version 4.3.1-Docker-3.3.0 ### Python Version 3.12 ### Steps to Reproduce add following env vars to docker-compose.override.yml environment: REMOTE_AUTH_ENABLED: 'true' REMOTE_AUTH_BACKEND: 'social_core.backends.open_id_connect.OpenIdConnectAuth' SOCIAL_AUTH_OIDC_OIDC_ENDPOINT: 'https://auth.example.com/application/o/netbox/' SOCIAL_AUTH_OIDC_KEY: '' SOCIAL_AUTH_OIDC_SECRET: '' SOCIAL_AUTH_OIDC_SCOPE: 'openid, profile, email, roles' LOGOUT_REDIRECT_URL: 'https://auth.example.com/application/o/netbox/end-session/' ### Expected Behavior The OIDC login to work. ### Observed Behavior It doesn't. Also, nowhere in the wiki does it state on how to add the OIDC feature, the Authentik documentation for this isn't really helping aswell. If anyone here has a more comprehensible guide please tell me.
adam added the netbox label 2025-12-29 21:42:01 +01:00
adam closed this issue 2025-12-29 21:42:01 +01:00
Author
Owner

@jnovinger commented on GitHub (May 24, 2025):

Thanks for the report, @noahtrr . Issues relating to the NetBox Docker images should be directed toward the netbox-community/netbox-docker project.

Given the lack of detailed steps to reproduce in this report, this question a good candidate for discussing on either the project's public discussion areas, Discussion forum or in the #netbox-docker channel in the NetDev Slack, rather than creating a bug issue.

@jnovinger commented on GitHub (May 24, 2025): Thanks for the report, @noahtrr . Issues relating to the NetBox Docker images should be directed toward the [netbox-community/netbox-docker](https://github.com/netbox-community/netbox-docker) project. Given the lack of detailed steps to reproduce in this report, this question a good candidate for discussing on either the project's public discussion areas, [Discussion forum](https://github.com/netbox-community/netbox-docker/discussions) or in the [#netbox-docker](https://netdev-community.slack.com/archives/C01P0GEVBU7) channel in the NetDev Slack, rather than creating a bug issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11214