title: 404 Not Found for oauth2/v2.0/token endpoint of Azure AD B2C
body: <p>I'm having a hard time receiving an <em>access_token</em> and <em>refresh_token</em> via the OAuth 2.0 API of Azure AD B2C.</p>
  
  <p>I'm following the <a href="https://github.com/Azure/azure-content/blob/master/articles/active-directory-b2c/active-directory-b2c-reference-oauth-code.md" rel="nofollow">official guide</a> describing the OAuth 2.0 authorization code flow.</p>
  
  <p>Receiving an <em>authorization_token</em> via the interactive login website provided by Microsoft works fine (URL: <code>https://login.microsoftonline.com/[MY_TENANT]/oauth2/v2.0/authorize?client_id=[CLIENT_ID]&amp;response_type=code&amp;response_mode=query&amp;redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&amp;scope=[CLIENT_ID]%20offline_access&amp;p=[MY_SIGNUP_SIGNIN_POLICY]</code>).</p>
  
  <p>However, when trying to get an <em>access_token</em> via a simple POST request as stated in the documentation, I'm getting a 404 Not Found with the following POST request:</p>
  
  <pre><code>URL: https://login.microsoftonline.com/[MY_TENANT]/oauth2/v2.0/token?p=B2C_1_sign_in
  Header: Content-Type application/x-www-form-urlencoded
  Payload: grant_type=authorization_code&amp;client_id=[CLIENT_ID]&amp;scope=[CLIENT_ID]%20offline_access&amp;code=[AUTHORIZATION_CODE]&amp;redirect_uri=urn:ietf:wg:oauth:2.0:oob
  </code></pre>
  
  <p>Is the documentation wrong at that point?</p>
  
  <p><em>Note: I'm not able to use any existing .NET or Java libraries providing this login procedure due to framework reasons. A C++ library would do.</em></p>
  
  <p>I so very much want them to implement the usual complete headless OAuth2 protocol in a standard-conformant way ...</p>