Search The ForumSearch   RegisterRegister  LoginLogin

MailBee POP3

 AfterLogic Forum : MailBee POP3
Subject Topic: Failed to access outlook POP3 with OAuth2 Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Erica
Newbie
Newbie


Joined: 16 September 2022
Online Status: Offline
Posts: 3
Posted: 16 September 2022 at 3:34pm | IP Logged Quote Erica

With the latest MailBee.NET that supports OAUTH2, after successfully connected the host Outlook.Office365.com, I got MailBeePop3LoginBadCredentialsException when attempting to login the Pop3 server using MailBee.Pop3Mail.Pop3 class:

Dim pop3Control = new Pop3
Dim xOAuthKey As String = OAuth2.GetXOAuthKeyStatic(user_name, validAccessToken)

pop3Control.Login(Nothing, xOAuthKey, AuthenticationMethods.SaslOAuth2, AuthenticationOptions.None, Nothing)

Same step and code structure works for Outlook IMAP. Any ideas?
Back to Top View Erica's Profile Search for other posts by Erica
 
Erica
Newbie
Newbie


Joined: 16 September 2022
Online Status: Offline
Posts: 3
Posted: 16 September 2022 at 6:41pm | IP Logged Quote Erica

With the latest MailBee.NET that supports OAUTH2, after successfully connected the host Outlook.Office365.com, I got MailBeePop3LoginBadCredentialsException when attempting to login the Pop3 server using MailBee.Pop3Mail.Pop3 class:

Dim pop3Control = new Pop3
Dim xOAuthKey As String = OAuth2.GetXOAuthKeyStatic(user_name, validAccessToken)

pop3Control.Login(Nothing, xOAuthKey, AuthenticationMethods.SaslOAuth2, AuthenticationOptions.None, Nothing)

This is the scope I defined and works for IMAP:
        Dim scope As New List(Of String)
        With scope
            .Add("openid")
            .Add("wl.emails")
            .Add("wl.imap")
            .Add("wl.offline_access")
        End With

I am guessing different scope should be used for POP, but don't know that to use.

Same step and code structure works for Outlook IMAP. Any ideas?
Back to Top View Erica's Profile Search for other posts by Erica
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 17 September 2022 at 4:00am | IP Logged Quote Alex

It's hard to tell for sure (as it's specifics of internal configuration of Azure cloud).

If you submit a ticket via Helpdesk, we'll be able to share the guide on obtaining OAuth2 token which we found working.

But the only authoritative source of such info would be Office 365 techsupport.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Erica
Newbie
Newbie


Joined: 16 September 2022
Online Status: Offline
Posts: 3
Posted: 17 September 2022 at 10:27am | IP Logged Quote Erica

I submitted a ticket via Helpdesk. Thanks!
Back to Top View Erica's Profile Search for other posts by Erica
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide