microsoft oauth2 v2.0 redirect_uri is not valid
<p>I'm trying to follow <a href="https://azure.microsoft.com/en-us/documentation/articles/active-directory-appmodel-v2-overview/" rel="nofollow">this guide</a> so that I can authenticate to my OneDrive account, but I get the following error:</p>

<blockquote>
  <p>The provided value for the input parameter 'redirect_uri' is not
  valid. The expected value is
  '<a href="https://login.live.com/oauth20_desktop.srf" rel="nofollow">https://login.live.com/oauth20_desktop.srf</a>' or a  URL which matches
  the redirect URI registered for this client application.</p>
</blockquote>

<p>Steps I took:</p>

<ol>
<li>Registered a New app</li>
<li>gave it a name</li>
<li>chose the web platform</li>
<li>specified <a href="https://localhost" rel="nofollow">https://localhost</a> as the redirect URI</li>
<li>pressed save</li>
<li>created this url: <a href="https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=d0adff4f-bcae-4a69-80a7-8a3328a6cf89&amp;scope=openid+profile&amp;response_type=id_token&amp;redirect_uri=https://localhost&amp;nonce=49458204719374587149482" rel="nofollow">https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=d0adff4f-bcae-4a69-80a7-8a3328a6cf89&amp;scope=openid+profile&amp;response_type=id_token&amp;redirect_uri=https://localhost&amp;nonce=49458204719374587149482</a></li>
<li>pasted url into browser and pressed enter</li>
<li>a login page appears with my app name and I select my account to login with. I'm then redirect and shown the "redirect_uri" is not valid message</li>
</ol>

<p>Any idea why I'm not getting a token response back?</p>