Microsoft Entra ID login 'social_core.exceptions.AuthMissingParameter' #19582
Replies: 2 comments
-
Okay, so if I put the Entra ID config directly into |
Beta Was this translation helpful? Give feedback.
-
So I had the same issue, and went through the same process you had. There's a discussion here discussing this exact issue netbox-community/netbox-docker#882 But rather than read all that the summary is, the clientid isn't being passed when you configure it within the environment variable. The solution to overcome this bug?!? as mentioned in the link above is this is this:
Go to your NetBox config directory (usually something like /opt/netbox/netbox-docker/configuration). Create a new file called social_auth.py in there. It doesn't have to be called this, but I did so I knew what it was for.
Open up social_auth.py and add the following, swapping in your own details: SOCIAL_AUTH_AZUREAD_OAUTH2_KEY = "your-client-id-here"
Check your docker-compose.yml and confirm you’ve got something like: volumes:
This tells NetBox to pick up your custom config files from the host, and it should already be set as default.
Bounce the containers so it all takes effect: docker compose down That sorted the client_id=None error for me. Couldn't have done this without the other comments in the other discussion, as they helped massively. Hope that helps. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Deployment Type
NetBox Docker
NetBox Version
4.3.1-Docker-3.3.0
Python Version
3.12.3
Steps to Reproduce
env/netbox.env
:docker compose down; docker compose up -d
)Expected Behavior
The login should have succeeded and logged me into NetBox with my Entra credentials
Observed Behavior
The following M365 error is displayed after clicking the login w Entra button:
Troubleshooting
A little while back, Microsoft started requiring unique tenant IDs for OAuth requests, instead of a generic URL.
After reviewing these docs, I tried adding the following to my
env/netbox.env
file:SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_TENANT_ID = '<<tenantID>>'
But that did not work either.
I also tried going to the admin consent URL (as a Global Admin):
https://login.microsoftonline.com/common/adminconsent?client_id=<<clientID>>
, and granting consent to the default read profile, and I receive the following in NetBox:Beta Was this translation helpful? Give feedback.
All reactions