-
-
Notifications
You must be signed in to change notification settings - Fork 447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Office 365 : Read: 4 BAD User is authenticated but not connected. #411
Comments
A user reported me the same issue recently. There is this old FAQ item but it seems unrelated: https://imapsync.lamiral.info/FAQ.d/FAQ.Office365.txt
|
Is it possible to use "--authuser1 admin-user" and oauth creating the token for admin? |
I don't know |
Hi, We got same issue there. Token process is OK : And after :
Note : It's a pro emails with and admin account that should authorize the componement validation to get the token. Maybe it can help @gilleslamiral ? Hope this issue will be fixed soon ! Best, |
It should work also with a normal account. |
So, i've found the solution : On Office 365 pro account @gilleslamiral, i'm thinking on line 510 on that file "oauth2_office365_with_imap" you should to test listing folder and put error if listing is empty (or catch the error "User is authenticated but not connected" and redirect to FAQ or help about this right issue. On public account PS @gilleslamiral : more generaly, why you don't publish anymore your release on Github ? We are now on 2.253. Hope this addon, mandatory for 365 now, will be added to imapsync a day ;) Best, |
The admin user had 2FA, so I could not use it to get the token with oauth2_office365_with_imap.
I could correctly register the application and get the token using a normal account with oauth2_office365_with_imap. |
so,is this question already solution? |
No, it does not. We abandoned the oauth2_office365_with_imap road and just solved our issue using Thunderbird and OAuth2. |
You can use the refresh token found in Thunderbird and use it with |
We have accounts that can be accessed through Thunderbird using imap and oauth2 correctly.
We tried using your solution with oauth2_office365 to create the tokens, uploaded to the imapsync server, but running imapsync with oauth always breaks with the error:
Read: 4 BAD User is authenticated but not connected.
Any way to solve this?
Gabriele
The text was updated successfully, but these errors were encountered: