Login  
Search All Forums
Dart Home | PowerTCP Mail for .NET | Custom Development Reply | PowerTCP Mail for .NET Topics | Forums   
AuthorForum: PowerTCP Mail for .NET
Topic: O365 mailbox access using a background process
laurentbe

From: Anderlecht, Belgium
Posts: 30
Member Since: 10/21/03
posted February 3, 2021 5:13 AM

Hi,

I've been using successfully PowerTCP Mail for .NET since 2004 to check the whole company on premise Exchange mailboxes for incoming email.

Last year our company started to migrate to O365.
Currently I still can access the O365 mailboxes using IMAP clear authentication but Microsoft announced it would remove this authentication scheme mid of this year... or a few months later.
(https://developer.microsoft.com/en-us/microsoft-365/blogs/deferred-end-of-support-date-for-basic-authentication-in-exchange-online/)

The way to go is usually OAuth2 which is not possible in our case since the software piece which reads email is a Windows service (aka background process, deamon) that does not act on behalf of an interactive user.

So I have to use the client credential flow. (https://docs.microsoft.com/en-us/azure/active-directory/develop/authentication-flows-app-scenarios)

Could you tell me if there is a way to keep on using PowerTCP Mail for .NET to access O365 mailboxes using the client credential flow?

At first sight it does not seems possible.
I haven't found any way yet: I registered an app, got a token, but I have no way to pass it to PowerTCP Mail for .NET.

Maybe you've already worked out this issue or you know the way to go?

Regards,
Laurent.
Jamie Powell (Admin)

From: Rome, NY USA
Posts: 436
Member Since: 03/13/07

Extra Support Options
Custom Application Development

posted February 4, 2021 4:22 PM

Thank you for your post. A reply has been sent directly to your email. Please let me know if you do not receive it and I will be happy to resend.

All the best,
Jamie

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

ag2411

From: Delhi, India
Posts: 1
Member Since: 03/08/21
posted March 15, 2021 12:38 AM

Hi,

I have also been trying to do almost the same but with Authorization Code flow. I am getting the token properly and the same token can be used with Microsoft Graph API's to read emails but when using the same in the Dart authentication mechanism, the Imap.Authenticate() method fails with A2 NO AUTHENTICATE FAILED error. Please let me know how can I proceed further.

Thanks,
Anurag
Jamie Powell (Admin)

From: Rome, NY USA
Posts: 436
Member Since: 03/13/07

Extra Support Options
Custom Application Development

posted March 17, 2021 5:38 PM

Thank you for your post. An email has been sent to you with additional information. Please let me know if you do not receive this email and I will be happy to resend.

Regards,
Jamie
Reply | PowerTCP Mail for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX