When you request the authorization URL, you will be redirected to the login page. Decode the authorization URL in the browser and find the redirect URL to see if it exactly matches the redirect URL you configured in the Azure portal.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.