title: Azure AD Authentication redirect NOT to localhost
body: <h2>UPDATE 2</h2>
  <p>After interacting with the Conveyor support service, it looks like it is a problem related to Blazor. By following their instructions on configuring it with Azure by using a normal web app it works fine.</p>
  <h2>UPDATE:</h2>
  <p>It seems to be a problem related to tunneling, by using Conveyor by Keyoti (same problem with Ngrok): even if the URL redirect (e.g. <a href="https://mynetcoreapp.conveyor.cloud/signin-oidc" rel="nofollow noreferrer">https://mynetcoreapp.conveyor.cloud/signin-oidc</a>) is listed in-app registration in Azure AD the same response is provided. I deployed the project on my public server with its own hostname and it works fine.</p>
  <hr />
  <p>By following the default tutorial trying to implement login with my tenant Microsoft accounts through Azure AD, i followed the steps listed at <a href="https://docs.microsoft.com/it-it/azure/active-directory/develop/tutorial-blazor-server" rel="nofollow noreferrer">here</a>.</p>
  <p>I set up the project by using:</p>
  <pre><code>dotnet new blazorserver -au SingleOrg --client-id &quot;605d0c93-1de4-4c81-99fa-********&quot; --tenant-id &quot;54775aa1-2d0e-48cb-9a7f-*********&quot;
  </code></pre>
  <p>It works like charm and logs in users registered in my test Tenant, besides the fact that if I try to redirect not to localhost, for example by using Conveyor Cloud, I get the error:</p>
  <p><em>AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '605d0c93-1de4-4c81-99fa-a6c3ef2e2b88'.</em></p>
  <p>with the details:
  <a href="https://i.stack.imgur.com/tqHna.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tqHna.png" alt="enter image description here" /></a></p>
  <p>This is a public url that I use, just to try if it would work on a public server at production
  <a href="https://i.stack.imgur.com/uX0Xx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uX0Xx.png" alt="" /></a></p>
  <p>This is the default situation, where I have the redirect URL set to localhost.
  While it is set with localhost it works, but how to make it work with just the public URL?
  <a href="https://i.stack.imgur.com/44xtU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/44xtU.png" alt="enter image description here" /></a></p>
  <p>My appconfig.json file works fine with localhost redirect
  <a href="https://i.stack.imgur.com/nn1du.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nn1du.png" alt="enter image description here" /></a></p>
  <p>What I saw is that even if I also specify the other public URL (from Conveyor) it redirects the wrong way to localhost, and I can imagine that this would not work in a production environment, where I'll have a public hostname. I can't figure out how to set up my project and I know it's probably some dumb configuration stuff, but I'm sorry, I'm a newbie with these technologies.
  Thanks!</p>