Hi @Radha Rajendran ,
Based on your correlation ID, it looks like you have one listed as http://localhost:8080/login/oauth2/code/azure
and the other listed as http://localhost:8080/login/oauth2/code/
Because the one has "azure" at the end and the other does not, that is probably the reason for the error.
As you probably know, the reply URL in your code needs to match exactly what you have in your app registration. There cannot be any mismatched spaces, slashes ("/"), or parameters. Also, if you're testing locally you would have the local application URL and if you're testing with a published app you would redirect the user to the published application. The app ID and tenant ID also need to match both in the code and the registration.
Hope this helps!
-
If you find this answer helpful, don't forget to "mark as answer" and leave a five-star rating.