Incorrect Icon for base Github authentication in login form #10903

Closed
opened 2025-12-29 21:37:32 +01:00 by adam · 0 comments
Owner

Originally created by @jnovinger on GitHub (Mar 17, 2025).

Originally assigned to: @jnovinger on GitHub.

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.

  1. Set the following netbox/netbox/configuration.py
REMOTE_AUTH_BACKEND = [
    'netbox.authentication.RemoteUserBackend',
    'social_core.backends.github.GithubOAuth2',
]
  1. 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/.

  1. Set SOCIAL_AUTH_GITHUB_KEY and SOCIAL_AUTH_GITHUB_SECRET in configuration.py
  2. Restart app (if not running ./manage.py runserver
  3. Navigate to http://127.0.0.1:8000/login/ (or /login/ on your installation)
  4. 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

Image

Originally created by @jnovinger on GitHub (Mar 17, 2025). Originally assigned to: @jnovinger on GitHub. ### 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. 1. Set the following `netbox/netbox/configuration.py` ```python REMOTE_AUTH_BACKEND = [ 'netbox.authentication.RemoteUserBackend', 'social_core.backends.github.GithubOAuth2', ] ``` 2. 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/`. 3. Set `SOCIAL_AUTH_GITHUB_KEY` and `SOCIAL_AUTH_GITHUB_SECRET` in `configuration.py` 4. Restart app (if not running `./manage.py runserver` 5. Navigate to http://127.0.0.1:8000/login/ (or `/login/` on your installation) 6. 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 ![Image](https://github.com/user-attachments/assets/559f9b4b-c22f-4e68-99d9-bd496b85e905)
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:37:32 +01:00
adam closed this issue 2025-12-29 21:37:33 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10903