Hello Kenneth Shon,
According to the best practices and limitations for Redirect URIs involving localhost, your application must use http://localhost:8080
as the Redirect URI (reply URL). The URI must always begin with the http://
scheme. Otherwise, such Redirect URIs cannot be added to Microsoft Entra applications due to platform restrictions.
For more details, please refer to the following documentation:
Redirect URI (reply URL) restrictions and best practices – Localhost exceptions
I hope this information is helpful. Please feel free to reach out if you have any further questions.