How to use Modern Authentication to access a Microsoft365 mailbox programmatically in C#. Working with EWS, IMAP, SMTP, POP3 email clients....Microsoft 365 admin center , go Settings > Org Settings > Modern...tenant from the Azure portal, go Azure Active Directory > Properties...