title: How to authenticate in Django with Azure AD via django-microsoft-auth
body: <p>I'm trying to set up a local Django app which uses Azure Active Directory for authentication. I went through <a href="https://django-microsoft-auth.readthedocs.io/en/latest/usage.html" rel="nofollow noreferrer">this quick start</a> using the <strong>django_microsoft_auth</strong> library for backend authentication. I registered a new app on Azure and set the URI to <strong>http://localhost:8000/microsoft/auth-callback/</strong>. This is the same port which is used for the other pages like the admin page.</p>
  <p>When I try to login via Azure AD, I get the following error message:</p>
  <blockquote>
  <p>AADSTS50011: The reply URL specified in the request does not match the
  reply URLs configured for the application</p>
  </blockquote>
  <p>Only few other threads with this problem exist and there hasn't been a real solution yet using this library. Does anyone know a solution to this problem?</p>