AADSTS650051: Invalid domain name in the request url. When trying to Login to Web App using Azure AD integration

Anonymous
2022-11-21T21:40:35.123+00:00

Getting AADSTS650051: Invalid domain name in the request url as response after giving the credentials

Service : Azure AD

Tenant : Single Tenant Id

We have created MSAL4j servlet application for integrating with Azure AD, created a APP in tenant got the details of client Id , tenant Id , Client secret value from the registered App and even configured redirect URI for the APP in Azure AD.

Here URL being generated :
https://login.microsoftonline.com/%7B2199bfba-a409-4f13-b0c4-18b45933d88d%7D/oauth2/v2.0/authorize?scope=openid+profile+offline_access+openid+email+profile+offline_access&response_type=code&redirect_uri=https%3A%2F%2Fiedssnprd.fssa.in.gov%2Fmsal4j-servlet-auth%2F%2Fauth%2Fredirect&state=e80b6d8e-0ea9-4ee8-92e2-35fbb3cf1642&nonce=7b117b27-4994-44ab-aaff-31c2d77bfbb6&prompt=select_account&client_id=%7Bc153802c-6d0d-47a9-91ba-ba7a756db786%7D&response_mode=query

After giving the UserName and Password I am being redirected to page with message "AADSTS650051: Invalid domain name in the request url." instead of redirect URI, Please let me know if am doing anything wrong or if any configuration is missing

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.