Hi The_Exchange_Team
We would like to migrate our server applications to use the https://docs.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth#sasl-xoauth2 auth method to send mails using SMTP. To do that we need to obtain an access token using a non-interactive token grant flow.
Unfortunately, Exchange Online does not allow us to use https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow to get an access token from AAD and then send the token to Exchange using the https://docs.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth#sasl-xoauth2 protocol.
See the following doc:https://docs.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth#smtp-protocol-exchange.
When will the https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow be supported for Exchange Online?
Until then, what non-interactive OAuth token grant flow do you recommend that we use for sending emails using SMTP?
Regards,
David