Azure AD v2 Error: Invalid Reply URL

Q

Why Azure AD v2.0 display this error message: AADSTS50011: The reply url specified in the request does not match the reply URLsconfigured for the application?

✍: FYIcenter.com

A

The root cause of this error is that you forgot the add the "redirect_uri" in your authentication request to Application ID settings on Azure AD.

For example, if http://fyicenter.com/openID_receiver.php was not added to your "OpenID Test" application ID setting as a "Reply URL", and you are using it in your authentication request as the "redirect_uri" parameter, you will get the following error:

Request Id: db18f633-e264-472d-8591-6e5369760f13
Correlation Id: db18f633-e264-472d-8591-6e5369760f13
Message: AADSTS50011: The reply url specified in the request does not 
   match the reply URLsconfigured for the application: 
   'bd51d56c-e744-4a58-91e1-************'.
Advanced diagnostics: Enable
If you plan on getting support for an issue, turn this on and try to 
reproduce the error. This will collect additional information that will 
help troubleshoot the issue.

Azure AD Authentication Request Error

Fixing the issue is easy. Just go back to Azure AD admin portal and add http://fyicenter.com/openID_receiver.php as "Reply URL" as described in the previous tutorial.

 

Azure AD v2 Authentication Request Test Page

Authentication Response Received from Azure AD v2

Azure AD Integration v2.0

⇑⇑ OpenID Tutorials

2019-05-03, 1430🔥, 0💬