Hi,
I have a web application. To debug it on my local machine, I can simply update hosts file to have string like "127.0.0.1 myDomain", and in project's property page, set "Start Url" to use myDomain name. Then I can start debugging from visual studio on my local machine. The web project launches, user can sign in windows live on home page using organizational account and do some work. Everything works fine and I can debug wherever I want.
Now, I converted the project into a provider hosted app. It builds and launches. But when user choses to sign in on home page, Windows Live SignIn page displays an error message saying "The reply address 127.0.0.1 is not valid". It seems this code "controllerContext.HttpContext.GetOwinContext().Authentication.Challenge(...)" uses url likehttps://127.0.0.1:446/Account/SignIn/OpenIdConnect?ReturnUrl=.... I think the issue will go away in production environment because a valid domain name will be presented. But before that, I need to be able to sign in and debug locally. Do you know if there is a way to debug provider hosted app using custom domain name, Or is there a way to sign in differently?
Thanks,
Fan