Docker: SOCIAL_AUTH_AZUREAD_OAUTH2_KEY environment vaiable doesn't work #10848

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

Originally created by @kale1d0code on GitHub (Mar 5, 2025).

Deployment Type

Self-hosted

NetBox Version

4.2.4

Python Version

3.12

Steps to Reproduce

  1. Setup Docker Stack for Netbox
  2. Add AzureAD Single Sign-On environment variables

Expected Behavior

To be authenticated against Microsoft Azure AD

Observed Behavior

Oauth2 Error Screen with the following message:
AADSTS700016: Application with identifier 'None' was not found in the directory '<DIRECTORY>'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.

Originally created by @kale1d0code on GitHub (Mar 5, 2025). ### Deployment Type Self-hosted ### NetBox Version 4.2.4 ### Python Version 3.12 ### Steps to Reproduce 1. Setup Docker Stack for Netbox 2. Add AzureAD Single Sign-On environment variables ### Expected Behavior To be authenticated against Microsoft Azure AD ### Observed Behavior Oauth2 Error Screen with the following message: ```AADSTS700016: Application with identifier 'None' was not found in the directory '<DIRECTORY>'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant. ```
adam added the type: bug label 2025-12-29 21:36:40 +01:00
adam closed this issue 2025-12-29 21:36:40 +01:00
Author
Owner

@arthanson commented on GitHub (Mar 5, 2025):

Can you please close this and re-open this as a discussion as there are other people using Azure authentication and we haven't received any reports on it being broken so I'm suspecting this is a configuration issue. You will get a lot more responses if you open it as a discussion.

@arthanson commented on GitHub (Mar 5, 2025): Can you please close this and re-open this as a discussion as there are other people using Azure authentication and we haven't received any reports on it being broken so I'm suspecting this is a configuration issue. You will get a lot more responses if you open it as a discussion.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10848