title: OAuth2 and Microsoft Graph API for my Node.js app?
body: <p>I'd like to add an Office365/Graph Calendar integration to an existing Node.js app (hosted on AWS).  I've already done a similar integration with Google's Calendar, and it was trivial to get set up. I'm not having nearly as much luck with the Microsoft version of things.</p>
  
  <p>I've found at least 4 different ways to register an app (get a clientId and clientSecret), and I seem to get different errors for each of them, but can't get any to work properly.</p>
  
  <p>I think a large part of my problem is that I've never had to work in the MS ecosystem before, so I don't have a lot of the baseline knowledge that the documentation assumes.</p>
  
  <p>I'm not looking to host anything with Microsoft - do I even need an Azure account?</p>
  
  <p>I'd like to allow any user with an Office365 account to connect it to my app - do I need to learn about Active Directory to do this?  Does this part of it require Azure?</p>
  
  <p>I've found instructions for using both <a href="https://login.microsoftonline.com/common/oauth2" rel="nofollow">https://login.microsoftonline.com/common/oauth2</a> and <a href="https://login.microsoftonline.com/common/oauth2/v2.0" rel="nofollow">https://login.microsoftonline.com/common/oauth2/v2.0</a> for this, do I need to worry about which version I use depending on how I registered my app?</p>