Office 365 XOAUTH2 for IMAP and SMTP Authentication fails

后端 未结 4 2315
孤独总比滥情好
孤独总比滥情好 2020-12-11 12:27

Recently the support for OAuth 2.0 for IMAP and SMTP in the Exchange Online has been announced. Following the guide I\'ve set up the application permissions and IMAP and SMT

4条回答
  •  再見小時候
    2020-12-11 12:58

    IMAP, SMTP scopes are targeted for Exchange resource and not Graph. Whereas User.Read, Mail.ReadWrite are meant for Graph resource.

    We do not support generation of tokens that are meant for two resources. Hence the error "Provided value for the input parameter scope is not valid because it contains more than one resource."

    You should generate two tokens separately by two calls to /token. 1. One with the IMAP, SMTP scopes generated for the Exchange resource. 2. The other with Graph scopes (User.Read, Mail.ReadWrite) meant for Graph resource.

提交回复
热议问题