Author |
|
Erica Newbie
Joined: 16 September 2022
Online Status: Offline Posts: 3
|
Posted: 16 September 2022 at 3:34pm | IP Logged
|
|
|
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 |
|
|
Erica Newbie
Joined: 16 September 2022
Online Status: Offline Posts: 3
|
Posted: 16 September 2022 at 6:41pm | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 17 September 2022 at 4:00am | IP Logged
|
|
|
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 |
|
|
Erica Newbie
Joined: 16 September 2022
Online Status: Offline Posts: 3
|
Posted: 17 September 2022 at 10:27am | IP Logged
|
|
|
I submitted a ticket via Helpdesk. Thanks!
|
Back to Top |
|
|