title: I am not able to get Authorization code while hitting url for microsoft Graph?
body: <p>The main point of my POC is to send Mail using Microsoft Graph Api In Java.
  I have followed this below Github repo steps each and I am able to build the code successfully:
  <a href="https://github.com/microsoftgraph/console-java-connect-sample" rel="nofollow noreferrer">https://github.com/microsoftgraph/console-java-connect-sample</a></p>
  
  <p>According to the steps mentioned in the Repo , I should get Authorization code in URL, 
  But I am unable to get the Authorization code. </p>
  
  <p>I made few changes in the code ,</p>
  
  <ol>
  <li><p>First , I replace the CLIENT_ID value as per my application client id's.</p></li>
  <li><p>Secondly also change the redirect URL in Constants.java. In the Repo, 
  redirect url is mentioned as 
  "<a href="https://login.microsoftonline.com/common/oauth2/nativeclient" rel="nofollow noreferrer">https://login.microsoftonline.com/common/oauth2/nativeclient</a>". But As I am 
  using organizational account, I have mentioned my application(web service) 
  redirect url.</p></li>
  <li>Also one more change which i made is in <code>MicrosoftAzureAD20Api.java</code> , I 
  replaced the <code>getAccessTokenEndpoint() and getAuthorizationBaseUrl()</code> URL's 
  as per my application.</li>
  </ol>
  
  <p>After running the code , it ran without error , I printed the authorization URL in console as well, but I am not getting authorization code in URL(which I printed in my console).
  The expected url (acc to github) is something like :</p>
  
  <pre><code>https://login.microsoftonline.com/common/oauth2/nativeclient?code={IAQABAAIAAABHh4kmS_aKT5XrjzxRAtHz5S...p7OoAFPmGPqIq-1_bMCAA}&amp;session_state=dd64ce71-4424-494b-8818-be9a99ca0798
  </code></pre>
  
  <p>But the URL which I am getting is something like below : </p>
  
  <pre><code> https://login.microsoftonline.com/{{tenantId}}/oauth2/v2.0/authorize?response_type=code&amp;client_id={{ClientId}}&amp;redirect_uri=https%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fnativeclient&amp;scope=Files.ReadWrite%20openid%20User.Read%20Mail.Send%20Mail.ReadWrite
  </code></pre>
  
  <p>As comparison in both url , code is missing in second one.(Which I need to pass on further)</p>
  
  <p>Please help me out.</p>