when your app redirects to azure to login, it passes the redirect url. azure just validates the url is on the reply list, else it gives an error. so the issue is with your app.
Microsoft Entra ID is redirecting user to wrong reply url localhost:8080
I've an Azure Web App, with the following Single Page Application Redirect URIs:
https://dummy-portal.myorg.net/my-app
https://dummy-portal.myorg.net
https://dummy-portal.ppd.myorg.net/my-app
https://dummy-portal.ppd.myorg.net
https://dummy-portal.azure.myorg.net/my-app
https://ppd-dummy-portal.azure.myorg.net/my-app
http://localhost:8080/myApp
Once the user hits my web url, they are redirected to the MS Sign In
page.
However for my preproduction deployment ppd
; the user is being redirected to localhost:8080/my-app
instead of the actual ppd
url.
I've verified my Angular MSAL, and it's not with the code but Azure only. Please help me on the.
As of now my prod is working fine, and I'm really worried that it might get broke as well, as the preprod was also working fine for >2 years, and suddenly started this issue.
2 answers
Sort by: Newest
-
-
Sergio Andrés Vargas Acosta 75 Reputation points
Aug 29, 2024, 4:56 PM Hi.
Ensure that the redirect URIs configured in Azure Entra ID for your application match the correct ones, particularly for the preproduction (ppd) environment. Verify that your Angular application's MSAL configuration aligns with the proper URIs for each environment, avoiding redirection to
localhost:8080
unless it’s during local development.