Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
chermisha  
#1 Posted : Tuesday, March 15, 2022 8:27:21 AM(UTC)
chermisha

Rank: Newbie

Groups: Registered
Joined: 1/2/2020(UTC)
Posts: 3
Canada

We are having trouble connecting to outlook.office365.com with OAuth2.0.
After getting a valid accessToken we do this:

lMailServer.Server = 'outlook.office365.com'
lMailServer.Port = '443'
lMailServer.User = '[our username]'
lMailServer.Password = accessToken
lMailServer.Protocol = 2 // EWS
lMailServer.SSLConnection = TRUE
lMailServer.AuthType = 3 // OAuth
lMailServer.Alias = "[email address]"
lmailClient.Connect(lMailServer)

Last line fails with "Unknown error 500".
My concern is that despite the authtype being set to 3 the log file shows this:

Server: outlook.office365.com
Port: 443
AuthType: AuthLogin
SSLConnection: True
SSLType: ConnectSSLAuto
Protocol: Exchange Web Service
ProxyProtocol: Socks5


ivan  
#2 Posted : Thursday, March 17, 2022 6:44:13 PM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,120

Thanks: 9 times
Was thanked: 49 time(s) in 49 post(s)
AuthLogin is from an error of log writter, could you send more detail to our support email address for assistance?
chermisha  
#3 Posted : Friday, March 18, 2022 4:56:49 AM(UTC)
chermisha

Rank: Newbie

Groups: Registered
Joined: 1/2/2020(UTC)
Posts: 3
Canada

Apparently the issue was related to TSL1.2 support in Windows 7. It's now resolved, thank you so much.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2022, Yet Another Forum.NET
This page was generated in 0.055 seconds.

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.