Jan089/ SuperAJ we solved this problem by implementing the https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow or https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-device-code on tenant or account level.
But I have question for Greg Taylor - EXCHANGE
It's a legid workflow to just use the very basic mail operations: polling (list/read/delete) and sending mails.
There are many mature clients and libraries doing this for the standardized protocols POP/IMAP and SMTP.
You mentioned...
"I would suggest getting away from all those protocols you listed and switching to EWS, or preferably, Graph"
"Graph is the better long term option though"
Why should we ever switch to Graph API when we just use these basic operations and there are rock solid libs out there doing this?
Are there _any_ plans to remove support for IMAP and SMTP?