title: ASP.NET MVC Microsoft Live Account Authentication on Localhost
body: <p>I have created a blank, new ASP.NET MVC site.</p>
  
  <p>I have set up an application endpoint at <a href="https://account.live.com/developers/" rel="noreferrer">https://account.live.com/developers/</a> as follows: </p>
  
  <p>API Settings: <a href="https://i.imgur.com/bIoV3x9.png" rel="noreferrer">http://i.imgur.com/bIoV3x9.png</a>
  <img src="https://i.stack.imgur.com/BQBON.png" alt="API Settings"></p>
  
  <p>App Settings and Code-Behind: <a href="https://i.imgur.com/P3KFyhV.png" rel="noreferrer">http://i.imgur.com/P3KFyhV.png</a>
  <img src="https://i.stack.imgur.com/bv2hR.png" alt="App Settings and Code-Behind"></p>
  
  <p>I have tried launching my site, connecting to <code>https://localhost:44300/</code>, clicking "Log in", then "Microsoft" and I get a page that says the following:</p>
  
  <blockquote>
    <p>Microsoft account</p>
    
    <p>We're unable to complete your request</p>
    
    <p>Microsoft account is experiencing technical problems. Please try again later.</p>
  </blockquote>
  
  <p>But the URL it redirects me to is:</p>
  
  <p><a href="https://login.live.com/err.srf?lc=1033#error=invalid_request&amp;error_description=The%20provided%20value%20for%20the%20input%20parameter%20" rel="noreferrer">https://login.live.com/err.srf?lc=1033#error=invalid_request&amp;error_description=The%20provided%20value%20for%20the%20input%20parameter%20</a>'redirect_uri'%20is%20not%20valid.%20The%20expected%20value%20is%20'<a href="https://login.live.com/oauth20_desktop.srf" rel="noreferrer">https://login.live.com/oauth20_desktop.srf</a>'%20or%20a%20URL%20which%20matches%20the%20redirect%20URI%20registered%20for%20this%20client%20application</p>
  
  <p>I am to believe that the redirect_uri is not valid. The expected value is some URI to oauth20_desktop.srf. I don't know what in the world is going on/what the problem is. Can anyone shed some light as to what I must do to test Microsoft Account logins to my localhost-running MVC site?</p>