title: Microsoft Outlook Rest API Oauth2 login uri not able to complete request
body: <p>I am trying to use the Microsoft Outlook REST API in java but am getting the following error after logging in to authenticate with OAuth2. My project is built in eclipse using maven and tomcat. </p>
  
  <p><a href="https://i.stack.imgur.com/eiqmV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eiqmV.png" alt="enter image description here"></a>
  The link for the error is the following:
  <a href="https://login.live.com/err.srf?lc=1033#error=unauthorized_client&amp;error_description=The+client+does+not+exist.+If+you+are+the+application+developer%2c+configure+a+new+application+through+the+application+management+site+at+https://apps.dev.microsoft.com/" rel="nofollow noreferrer">https://login.live.com/err.srf?lc=1033#error=unauthorized_client&amp;error_description=The+client+does+not+exist.+If+you+are+the+application+developer%2c+configure+a+new+application+through+the+application+management+site+at+https://apps.dev.microsoft.com/</a>.</p>
  
  <p>I built my login uri with the following java class:</p>
  
  <p><a href="https://i.stack.imgur.com/0ZySD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0ZySD.png" alt="enter image description here"></a></p>
  
  <p>Here is what my application registration looks like:
  <a href="https://i.stack.imgur.com/kRew9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kRew9.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/tSeVa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tSeVa.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/dQJAz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dQJAz.png" alt="enter image description here"></a></p>
  
  <p>Thanks in Advance!</p>