title: OAuth2 with Azure Active Directory without specifying the resource
body: <p>I'm trying to obtain Auth Token using following tutorial:
  <a href="https://docs.microsoft.com/en-us/azure/active-directory/active-directory-protocols-oauth-code" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/active-directory/active-directory-protocols-oauth-code</a></p>
  
  <p>The important thing is that I'm not providing the "Resource" parameter. According to the documentation it's optional.</p>
  
  <p>I am able to obtain the Authorization Code, but when I try to use it to get the Access Token I'm getting: </p>
  
  <blockquote>
    <p>AADSTS50001: Resource identifier is not provided</p>
  </blockquote>
  
  <p>According to the documentation Resource param should only be required if it was specified in the request for Auth Code. With Resource param it works fine, but I need to implement it without it.</p>