The scope set is:
private val mScopes = listOf(
"User.Read",
"Mail.Read",
"Mail.ReadWrite",
"Mail.Send"
)
Alternatively:
private val mScopes = listOf(
"User.Read",
"IMAP.AccessAsUser.All",
)
This way, I can get a token, but using this token, IMAPSession checkAccount failed(Unable to authenticate with the current session's credentials.). Here is my configuration:
I use this library to obtain the oauthtoken for Outlook: https://github.com/AzureAD/microsoft-authentication-library-for-android 。
The scope set is: private val mScopes = listOf( "User.Read", "Mail.Read", "Mail.ReadWrite", "Mail.Send" )
Alternatively: private val mScopes = listOf( "User.Read", "IMAP.AccessAsUser.All", )
This way, I can get a token, but using this token, IMAPSession checkAccount failed(Unable to authenticate with the current session's credentials.). Here is my configuration:![image](https://user-images.githubusercontent.com/18391426/234252379-0f183799-feac-4a95-af75-36a51f6fd82f.png)