redirect URI specified in the request does not match the redirect URIs configured for the application

RF-4420 21 Reputation points
2022-04-14T21:51:40.507+00:00

I have created a .net core web app using Windows Auth. In the azure portal I have configured the auth for my web app and set the redirect uri to https://mysubdomain.azurewebsites.net/signin-oidc yet I continue to get errors saying the redirect uri does not match the request matches in the azure portal. I have checked and checked and checked and the redirect uri's ABSOLUTELY DO MATCH. The app runs fine within IIS Express, prompting for an MS login, accepting it, then redirecting home and showing I am logged in within the top right of the navbar. But when I run the live site via Azure it continually throws the mismatched redirect uri error. I am stuck and would appreciate any help.

I've confirmed that the redirect_uri param in the url that shows this error matches my azure site url exactly.

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

Accepted answer
  1. Carlos Solís Salazar 18,191 Reputation points MVP Volunteer Moderator
    2022-04-15T13:40:02.803+00:00

    @RF-4420

    The app registration screenshot that would help us looks like this
    193502-screenshot-2022-04-15-083324.png

    You should find all your app registration here https://aad.portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps

    Hope this helps,
    Carlos Solís Salazar

    ----------

    Accept Answer and Upvote, if any of the above helped, this thread can help others in the community looking for remediation for similar issues.

    NOTE: To answer you as quickly as possible, please mention me in your reply.



1 additional answer

Sort by: Most helpful
  1. RF-4420 21 Reputation points
    2022-04-15T14:14:53.677+00:00

    That explains it - thanks. I don't have admin access to the domain's AD. I will eventually but not until it's deployed within the org intranet.

    I guess I will have to find a workaround during development. I appreciate the response.

    0 comments No comments

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.