Hi Kevin, Generating Google App Password works. Thanks you!
Best, Valentina ________________________________ From: Kevin Doran <[email protected]> Sent: Monday, 13 June 2022 16:45 To: [email protected] <[email protected]> Subject: Re: ConsumeIMAP Invalid credentials error and Gmail disabling less secured apps access Hi Valentina, I've not tried this myself, so I cannot be sure it is a solution here, but have you tried generating a Google App Password [1] for the Gmail account to use in NiFi in place of the user password? I'm not sure if it is a drop-in replacement or not, but worth trying to see if it works with NiFi IMAP/SMTP processors as-is. If not, we should probably capture this as an Apache NiFi Jira if it has not been already, as this is essentially a feature request to add that capability as an option/alternative form of authentication for IMAP/SMTP processors. [1] https://support.google.com/accounts/answer/185833?hl=en<https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsupport.google.com%2Faccounts%2Fanswer%2F185833%3Fhl%3Den&data=05%7C01%7Cvalentina.ivanova%40ri.se%7C917bc0fc2aad4718498a08da4d4b5ef3%7C5a9809cf0bcb413a838a09ecc40cc9e8%7C0%7C0%7C637907283480214524%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=U54N8xC8sruPk35QWjlbATj2ktmDTBn3r0%2F6NMCDXgE%3D&reserved=0> Hope this helps, Kevin On Jun 13, 2022 at 05:02:19, Valentina Ivanova <[email protected]<mailto:[email protected]>> wrote: Hello! I am using ConsumeIMAP processor to access a gmail mailbox. In order to authenticate with user and password I had to turn on the 'Allow less secure apps access' setting in Gmail. However, since May 30th, this setting is no longer available which leads to Invalid credentials error in ConsumeIMAP. What would be a solution to this issue? How to retrieve emails from a Gmail mailbox from Nifi? Many thanks & have a great week ahead, Valentina
