I asked this question here https://answers.microsoft.com/en-us/outlook_com/forum/oemail-oapps/is-it-possible-to-obtain-oauth2-tokens-for-a-gmail/9637269f-ea83-4c1a-a908-2a79ba9df726 but was suggested to ask it here as well.
According to this page: https://docs.microsoft.com/en-us/exchange/troubleshoot/administration/cannot-connect-mailbox-pop-imap-outlook
Outlook supports Modern authentication for only Exchange, Outlook.com, and Gmail at this time.
So, is it possible to register an app in Azure, ask for permissions like POP/IMAP and then obtain tokens so that the app can read a Gmail's account emails?
If so, please point me to the documentation where this is explained.
Thanks in advance.