Prettify SSO login links #6349

Closed
opened 2025-12-29 19:39:43 +01:00 by adam · 3 comments
Owner

Originally created by @jeremystretch on GitHub (Apr 13, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.2.0

Feature type

New functionality

Proposed functionality

Display a proper name (and possibly logo?) for any configured remote authentication backend. These could be stored in a static mapping. For example:

AUTH_BACKENDS = {
    'azuread-oauth2': {
        'name': 'Microsoft Azure AD',
        'logo': 'path/to/logo.png',
    }
}

The login template would attempt to resolve these attributes for the configured backend and render accordingly.

Use case

The current SSO login link, while functional, is rather spartan and conveys only the name of the configured backend. A proper name for the authentication service would be more user-friendly.

netbox_sso_login

Database changes

No response

External dependencies

No response

Originally created by @jeremystretch on GitHub (Apr 13, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.2.0 ### Feature type New functionality ### Proposed functionality Display a proper name (and possibly logo?) for any configured remote authentication backend. These could be stored in a static mapping. For example: ``` AUTH_BACKENDS = { 'azuread-oauth2': { 'name': 'Microsoft Azure AD', 'logo': 'path/to/logo.png', } } ``` The login template would attempt to resolve these attributes for the configured backend and render accordingly. ### Use case The current SSO login link, while functional, is rather spartan and conveys only the name of the configured backend. A proper name for the authentication service would be more user-friendly. ![netbox_sso_login](https://user-images.githubusercontent.com/13487278/163268859-d5164cab-6c41-4d5a-8ad7-8220b7a70c0b.png) ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: feature labels 2025-12-29 19:39:43 +01:00
adam closed this issue 2025-12-29 19:39:43 +01:00
Author
Owner

@jeremystretch commented on GitHub (Apr 14, 2022):

Opened python-social-auth/social-core#680 to see if there's any interest in defining canonical user-friendly backend names upstream.

@jeremystretch commented on GitHub (Apr 14, 2022): Opened python-social-auth/social-core#680 to see if there's any interest in defining canonical user-friendly backend names upstream.
Author
Owner

@oasys commented on GitHub (Apr 14, 2022):

In my experience, many organizations will "brand" their SSO with a custom name, as something like "Company Foo OneLogin". The result is that the application users may not even know what the backend actually is. Because of this, I'd certainly prefer that the name is still customizable within NetBox, even if python-social-auth provides a friendly name.

@oasys commented on GitHub (Apr 14, 2022): In my experience, many organizations will "brand" their SSO with a custom name, as something like "Company Foo OneLogin". The result is that the application users may not even know what the backend actually is. Because of this, I'd certainly prefer that the name is still customizable within NetBox, even if `python-social-auth` provides a friendly name.
Author
Owner

@jeremystretch commented on GitHub (Apr 14, 2022):

@oasys we could certainly look into that, however proposing a new configuration parameter(s) would need a separate FR. For now I'm just focused on improving the cosmetic appearance.

@jeremystretch commented on GitHub (Apr 14, 2022): @oasys we could certainly look into that, however proposing a new configuration parameter(s) would need a separate FR. For now I'm just focused on improving the cosmetic appearance.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6349