Azure AD (Entra ID) Connection Resulting Error in AADSTS50011

Overview

This article details what is the reason behind the following Azure AD (Entra ID) connection error:

AADSTS50011: The redirect URI ‘/login/callback’ specified in the request does not match the redirect URls configured for the application …

Applies To

  • Azure AD (Entra ID)
  • Microsoft

Solution

This error occurs when the included Auth0 Callback URL is not in the below format in the ‘Redirect URIs’ section from inside the respective Azure AD (Entra ID) settings.

https://YOUR_DOMAIN/login/callback

Instructions on where this should be configured are found here.

To use a custom domain with Azure AD (Entra ID) connections, make sure to update the Allowed Reply URL in the respective Azure AD settings by doing the following:

  1. Go to Apps registrations and select the desired app.

  2. Click Settings > Reply URLs.

  3. Add a URL with the Custom Domain in the format:

    https:///login/callback

    This is explained in detail here.

Related References

  • Additionally, here is Microsoft documentation on the AADSTS50011 error for further review.