A cloud-based identity and access management service for securing user authentication and resource access
The issue occurs because the redirect URI configured in your app registration does not match the URI being sent during sign-in. The Application (client) ID itself cannot be edited it’s a unique identifier assigned when the app registration is created.
To fix the issue, follow these steps to add a redirect URI in Microsoft Entra app registration.
- Copy the application ID from the error message. This is the ID of your application that has been registered in Microsoft Entra ID.
Go to the Azure portal. Make sure you sign in to the portal by using an account that has permissions to update Microsoft Entra Application registration.
- Navigate to Microsoft Entra ID, select App registrations, locate the application registration by using the application ID, and then open the app registration page. You can also open the page directly by using the following links:
- If this app is owned by an organization (Microsoft Entra tenant), use
https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/Authentication/appId/<AppGUID>. - If this app is owned by your personal Microsoft (MSA) account, use
https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/Authentication/appId/<AppGUID>/isMSAApp/true.
- If this app is owned by an organization (Microsoft Entra tenant), use
- On the app registration page, select Authentication. In the Platform configurations section, select Add URI to add the redirect URI displayed in the error message to Microsoft Entra ID
4.Save the changes and wait three to five minutes for the changes to take effect and then send the login request again. You should now be able to sign in to the application. If you don't see the Microsoft Entra login page, try clearing the password cache from your browser or use InPrivate browsing.
Note: If the redirect URI sent from the application isn't the desired one, you should update your application code or configuration.
Please let me know if you need any additional Information or need further assistance on this.