How to Add microsoft login to python django web app

The web app works with a basic user management service. Im trying to add microsoft authentication through 365. After attempting to log in there is always an error

"AADSTS700016: Application with identifier 'None' was not found in the directory 'University Of x'. 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.'

I cannot figure out how to get the URL to include the client ID. I have already created the microsoft social app in the web app's django admin pannel and already tried many syntaxes for putting it in the settings.py. I also just manually put it in the URL and then it crashes the website, Im pretty sure this is because i manually put the client_ID and the backend isnt reading it to process it in the next page.

Back to Top