title: ASP.NET Core Azure AD Auth - Redirect URI incorrect for network web server
body: <p>I am creating a web app in ASP.NET Core that uses Azure AD for authentication. When debugging, everything works fine. When published to the local web server, an error occurs: </p>
  
  <blockquote>
    <p>AADSTS50011: The reply url specified in the request does not match the
    reply urls configured for the application</p>
  </blockquote>
  
  <p>Right now, I have the reply_url in azure as <a href="https://localhost:5000/signin-oidc" rel="nofollow noreferrer">https://localhost:5000/signin-oidc</a>, and the callback url in appsettings.json as "/signin-oidc".
  When registering the app in Azure, you cannot set a local network location as a reply_url (eg. \\server\folderlocation). How can I set this up to have the redirect urls match? </p>
  
  <p>Also, would IIS interfere with this somehow since I set it up like regular ASP.NET apps? I haven't messed with the IIS settings at all, and I've read with ASP.NET Core you basically have to make it pass through IIS because of the properties of aspnetcore. </p>