URL Misdirect - TrackingID#2509240040003998
Tried to fix the URL redirect error. Did not work following the youtube video Microsoft site recommended. Now the iss ue is that the Application (client) ID is not the correct one , and I do not know how to edit it.
Microsoft Security | Microsoft Entra | Microsoft Entra ID
-
Pashikanti Kumar • 600 Reputation points • Microsoft External Staff • Moderator
2025-09-24T17:48:29.7166667+00:00 Hi Mario Admin,
Thank you for posting your question in the Microsoft Q&A forum
Can you please share the exact error screen shot and message you're seeing during the redirect?
-
Mario Admin • 0 Reputation points
2025-09-24T18:43:32.9266667+00:00 Screenshot 2025-09-24 134100.pngScreenshot 2025-09-24 133824.png
Attached are two pictures. If you notice the Microsoft error shows a application number different then the one in Azure. I dont know how to make them the same. I assume this is why the redirect errors happens.
-
VEMULA SRISAI • 650 Reputation points • Microsoft External Staff • Moderator
2025-09-24T20:57:21.34+00:00 Could you please confirm are you using multiple Microsoft Entra ID directories (tenants)? Sometimes this error happens when the app is registered in one directory, but the sign-in request is coming from another. That would explain why the Application ID in the error message is different from the one you see in your Azure portal.
If you're switching between tenants or using personal vs. organizational accounts, let me know
-
Mario Admin • 0 Reputation points
2025-09-24T23:56:52.4233333+00:00 I am using it for one of my email addresses that managed the conference room calendar. This is new to me, so not sure what your asking. I just need it to work for one email address not all of my user emails.
-
Saritha Bandaru • 1,625 Reputation points • Microsoft External Staff • Moderator
2025-09-25T02:57:02.2333333+00:00 Hello @Mario Admin
I understand that You created an app registration called “cozyla” in Entra ID.
- That app has its own Application (client) ID
- When you try the sign-in flow, the Microsoft error page shows:
- A different redirect URL than you expected.
- A different Application (client) ID
Could you please confirm whether we are on same track?
1.In Azure portal → App registrations → cozyla → Overview, copy the Application (client) ID.
2.Check your app’s configuration: Depending on how you built cozyla:
- If it’s a web app → check your
appsettings.json
,.env
, or config file forClientId
orApplicationId
. Replace the old ID with cozyla’s. - If it’s frontend JS (React/Angular) → look in your
msalConfig
orauthConfig
forclientId
. - If it’s PowerShell / CLI → check the login command (
--client-id
). - If it’s an Outlook add-in manifest → open the manifest XML and verify the
<Id>
or<ClientId>
element.
3.Update Redirect URI in cozyla
- Go to cozyla app → Authentication.
- Add the exact redirect URI that your app is sending (you saw it in the error).
- Save.
4.Retry login- The login page should now reference cozyla’s Application ID, not the other one.
If the steps above did not resolve your issue, could you please share the new error details along with the following information?
Could you please clarify whether your concern is solely about the different application ID, or does it also include the redirect URL?
Additionally, could you confirm if your Cozyla is an Outlook add-in, or is it another type of application such as a desktop app, web app, or something else?
Thanks
-
Mario Admin • 0 Reputation points
2025-09-25T03:36:43.2433333+00:00 Thank you, I will try when i get back to the office.
-
VEMULA SRISAI • 650 Reputation points • Microsoft External Staff • Moderator
2025-10-01T20:24:59.9633333+00:00 Mario Admin could you confirm if you had a chance to try the steps mentioned above?
-
VEMULA SRISAI • 650 Reputation points • Microsoft External Staff • Moderator
2025-10-06T20:48:23.24+00:00 Mario Admin Reaching out to check if the earlier guidance was helpful and whether you were able to try those steps.
-
Mario Admin • 0 Reputation points
2025-10-06T23:40:08.7766667+00:00 I have tried but have no luck so far. I have checked my typing to make sure all is as suppose, but still error out.
-
VEMULA SRISAI • 650 Reputation points • Microsoft External Staff • Moderator
2025-10-08T08:49:09.78+00:00 Mario Admin Thanks for confirming you tried those steps. Since it’s still failing, the key point is that the Application (client) ID cannot be edited in Entra ID—if the sign-in page shows a different ID, your app is still using the old one.
Please check the
/authorize
request in browser DevTools → Network and confirm theclient_id
andredirect_uri
your app sends. Ifclient_id
≠ cozyla’s ID, update your app’s config (e.g.,appsettings.json
,.env
,msalConfig
, or manifest) with cozyla’s correct ID, then rebuild/redeploy. -
VEMULA SRISAI • 650 Reputation points • Microsoft External Staff • Moderator
2025-10-09T22:23:48.9966667+00:00 Mario Admin Could you please see my previous response and check the
/authorize
request in browser DevTools.
Sign in to comment