The right way to phrase this is:
I want Discourse to authenticate to the SMTP server using oAuth2 authentication instead of Basic authentication
This is for user replies / inbound mail?
I understand there’s a mailgun plugin for this, though I haven’t used it.