I am trying to build an OAuth2.0 client (Authorization code flow) app communicating with the world of Microsoft, using Microsoft-Graph API. The goal is to do some proof of concept of getting the user's calendar data and also notifications when the user adds some events to the Outlook calendar.
It is a Java app so I am using Microsoft-Graph API's Java SDK, the problem is I couldn't find a proper multi-tenant tutorial using which I can cater to all MS identities including work/school/personal accounts. Most tutorials by MS are geared toward single-tenant in-house apps supposed to be used by users present in the same tenant wherein the app is registered. Any help shall be highly appreciated, Thanks!