Skip to content

Commit ac9f561

Browse files
alehaajeremystretch
authored andcommitted
Fix social auth for Entra ID
Previously Azure AD was renamed to Entra ID. However, as django social auth didn't change its API, just the display names must be changed but not the API names.
1 parent 5ddbaca commit ac9f561

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/administration/authentication/microsoft-entra-id.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Under the Azure Active Directory dashboard, navigate to **Add > App registration
1616

1717
Enter a name for the registration (e.g. "NetBox") and ensure that the "single tenant" option is selected.
1818

19-
Under "Redirect URI", select "Web" for the platform and enter the path to your NetBox installation, ending with `/oauth/complete/entraid-oauth2/`. Note that this URI **must** begin with `https://` unless you are referencing localhost (for development purposes).
19+
Under "Redirect URI", select "Web" for the platform and enter the path to your NetBox installation, ending with `/oauth/complete/azuread-oauth2/`. Note that this URI **must** begin with `https://` unless you are referencing localhost (for development purposes).
2020

2121
![App registration parameters](../../media/authentication/azure_ad_app_registration.png)
2222

netbox/netbox/authentication/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
'amazon': ('Amazon AWS', 'aws'),
2121
'apple': ('Apple', 'apple'),
2222
'auth0': ('Auth0', None),
23-
'entraid-oauth2': ('Microsoft Entra ID', 'microsoft'),
24-
'entraid-b2c-oauth2': ('Microsoft Entra ID', 'microsoft'),
25-
'entraid-tenant-oauth2': ('Microsoft Entra ID', 'microsoft'),
26-
'entraid-v2-tenant-oauth2': ('Microsoft Entra ID', 'microsoft'),
23+
'azuread-oauth2': ('Microsoft Entra ID', 'microsoft'),
24+
'azuread-b2c-oauth2': ('Microsoft Entra ID', 'microsoft'),
25+
'azuread-tenant-oauth2': ('Microsoft Entra ID', 'microsoft'),
26+
'azuread-v2-tenant-oauth2': ('Microsoft Entra ID', 'microsoft'),
2727
'bitbucket': ('BitBucket', 'bitbucket'),
2828
'bitbucket-oauth2': ('BitBucket', 'bitbucket'),
2929
'digitalocean': ('DigitalOcean', 'digital-ocean'),

0 commit comments

Comments
 (0)