title: azure authentication web app localhost reply url
body: <p>I've created a web app using Azure auth.
  It's working fine locally but when published the auth reply url is looking for the localhost. 
  I've added the correct reply url to Azure portal and I can get it to work if I add either the locahost or requireUrl to the top of the list.</p>
  
  <p>Searching for the fix says I need to use web.config transforms to set the reply url for either localhost or deployed app.</p>
  
  <p>I can't get it to work.
  I'm using:</p>
  
  <pre><code>&lt;Configuration&gt;
    &lt;system.identityModel.services&gt;
      &lt;federationConfiguration&gt;
        &lt;wsFederation reply="localhost" realm="localhost" issuer="https://login.microsoftonline.com/"/&gt;
       &lt;/federationConfiguration&gt;
  &lt;/system.identityModel.services&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Just for testing I'm have the deployedURL set in top of the list on Azure reply urls and its working fine for the deployed app but the local development version is redirecting to the deployedURL after login.</p>
  
  <p>I thought the above web.config code would redirect the local development version to stay local.</p>
  
  <p>What am I missing ?</p>