通过OAuth 2.0 support for IMAP的新推出,我可以使用合并范围生成令牌
https://outlook.office365.com/IMAP.AccessAsUser.All
但是我仍然得到
A1没有授权失败
我正在使用以下属性:
props.put("mail.imap.ssl.enable", "true");
props.put("mail.imap.auth.mechanisms","XOAUTH2");
props.put("mail.imap.auth.plain.disable", "true");
{“ album”:“ string”,“ albumArtist”:“字符串”,“ artist”:“ string”,“比特率”:128,“ composers”:“ string”,“ copyright”:“ string”,“ disc”:0,“ discCount”:0,“持续时间”:567,“ genre”:“ string”,“ hasDrm”:否,“ isVariableBitrate”:否,“ title”:“ string”,“曲目”:1,“ trackCount”:16“年”:2014}