-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Labels
severity: lowDoes not significantly disrupt application functionality, or a workaround is availableDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Milestone
Description
Deployment Type
Self-hosted
NetBox Version
v4.2.5
Python Version
3.10
Steps to Reproduce
Strictly speaking, only steps 1 and 6 below are required to demonstrate the bug. Steps 2-5 ensure that the GitHub auth backend is configured correctly.
- Set the following
netbox/netbox/configuration.py
REMOTE_AUTH_BACKEND = [
'netbox.authentication.RemoteUserBackend',
'social_core.backends.github.GithubOAuth2',
]- Follow Python Social Auth's steps for setting base GitHub authentication: https://python-social-auth.readthedocs.io/en/latest/backends/github.html
Note: when entering the 'Authorization Callback URL' in the Github application, use <scheme>://<domain>/oauth/complete/github/ rather than <scheme>://<domain>/complete/github/.
- Set
SOCIAL_AUTH_GITHUB_KEYandSOCIAL_AUTH_GITHUB_SECRETinconfiguration.py - Restart app (if not running
./manage.py runserver - Navigate to http://127.0.0.1:8000/login/ (or
/login/on your installation) - Observe Docker project icon next to 'GitHub' login button
Expected Behavior
GitHub icon shows up next to 'GitHub' login button
Observed Behavior
Docker project icon next to 'GitHub' login button
Metadata
Metadata
Assignees
Labels
severity: lowDoes not significantly disrupt application functionality, or a workaround is availableDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
