nextgenhealthcare / connect

The swiss army knife of healthcare integration.
Other
897 stars 272 forks source link

[BUG] Email reader with Basic Authentication and Exchange Online #5508

Open lsainlez opened 1 year ago

lsainlez commented 1 year ago

Describe the bug The use of IMAP/POP protocol with connector Email Reader no longer works since October 1, 2022 Probably related to this Microsoft intervention : In September 2021, we announced that effective October 1, 2022, we will begin disabling Basic authentication for Outlook, EWS, RPS, POP, IMAP, and EAS protocols in Exchange Online. SMTP Auth will also be disabled if it is not being used.

Sources :

To Reproduce Setup steps (if required). Example:

  1. Create channel with source connector Email Reader
  2. Configure Email Reader Settings :
  3. Protocol IMAP
  4. Host : outlook.office365.com
  5. Port : 993
  6. username + password of your account
  7. Deploy channel
  8. You can see error AUTHENTICATE failed

Expected behavior

Actual behavior

Environment (please complete the following information): OS: Linux Ubuntu 20 LTS Java Distribution/Version: Open JDK 8 Connect Version 4.0.1

Questions : Other people having this problem?

pacmano1 commented 1 year ago

IMHO, that's not really a bug. It's a feature request.

lsainlez commented 1 year ago

possible, I hesitated. :)

jonbartels commented 1 year ago

https://github.com/nextgenhealthcare/connect/discussions/5363

jonbartels commented 1 year ago

https://github.com/nextgenhealthcare/connect/discussions/5090

jonbartels commented 1 year ago

Excuse me, my links may not be relevant. Old advice to use App Passwords may not work per @lsainlez first link.

The deprecation of basic authentication will also prevent the use of app passwords with apps that don't support two-step verification.

The email reader is a paid plugin, have you contacted support or sales from NextGen?

lsainlez commented 1 year ago

Hi @jonbartels
I'm waiting for a response from the support, I'll add the answer in this issue if it's interesting.

Jeroen-G-JYZ commented 1 year ago

A HTTP Sender to the MSGRAPH API can be used to read mails from a mailbox on Exchange Online/Office 365 https://learn.microsoft.com/en-us/graph/api/message-get?view=graph-rest-1.0&tabs=http

lsainlez commented 1 year ago

Thanks @Jeroen-G-JYZ , using MSGRAPH API is great idea and it works