[MlMt] Office 365 OAUTH2 Support
Marco Qualizza
mierauch at gmail.com
Tue May 19 13:04:43 EDT 2020
I've just updated to r5690 and am testing the oauth support against
corporate OKTA. While MM was not able to complete the authentication
process, it got really far.
I get the proper OAUTH challenges, and OTP request etc. But, at the
very end, right after the OTP request, something goes awry and the
authentication doesn't complete. The account shows as "unavailable",
and after a second the OAUTH authentication restarts.
Could you please look into this, and see if completing the
authentication against OKTA is trivial now that OAUTH2 is in?
Let me know what information you need. Here is a C&P from the activity
window:
```
15:21:04 Trying to connect to outlook.office365.com on port 993
(CFNetwork) without STARTTLS (required)
15:21:04 Resolved hostname (outlook.office365.com).
15:21:04 Prepare secure connection...
15:21:04 Successful connection.
15:21:04 Initiating secure connection...
15:21:05 Returned (4)...
15:21:05 Protocol version: kTLSProtocol12
15:21:05 S: * OK The Microsoft Exchange IMAP4 service is ready.
[WQBRAFgAUABSADAAMQAwADEAQwBBADAAMAAzADcALgBDAEEATgBQAFIARAAwADEALgBQAFIATwBEAC4ATwBVAFQATABPAE8ASwAuAEMATwBNAA==]
15:21:05 C: A0 CAPABILITY
15:21:05 S: * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR
UIDPLUS ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+
15:21:05 S: A0 OK CAPABILITY completed.
15:21:05 Retrieving password (keychain or user request)
15:21:05 C: A1 AUTHENTICATE XOAUTH2 ••••••••••
15:21:06 S: A1 NO AUTHENTICATE failed.
15:21:06 Error: Server response: “A1 NO AUTHENTICATE failed.”.
Command attempted: “A1 AUTHENTICATE XOAUTH2
••••••••••”.
15:21:06 Retrieving password (keychain or user request)
15:21:06 Error code: 12
15:21:06 Failed action (1000). Reset observed read/write timeouts: 8/8
15:21:06 Handling reply
15:21:06 Error: Failed multiple retries (1). Final error code was 14.
15:21:06 Terminating non-running connection...
15:21:11 Running action
15:21:11 Sending request (12)
15:21:11 Handling request
15:21:11 Trying to disconnect nicely (8)...
15:21:11 C: A2 LOGOUT
15:21:11 S: * BYE Microsoft Exchange Server IMAP4 server signing off.
15:21:11 S: A2 OK LOGOUT completed.
15:21:11 Clearing connection to outlook.office365.com
15:21:11 Ready to run action (retry count: 0)
15:21:11 Clearing connection to outlook.office365.com
15:21:11 Trying to connect to outlook.office365.com on port 993
(CFNetwork) without STARTTLS (required)
15:21:11 Resolved hostname (outlook.office365.com).
15:21:11 Prepare secure connection...
15:21:11 Successful connection.
15:21:11 Initiating secure connection...
15:21:11 Returned (4)...
15:21:11 Protocol version: kTLSProtocol12
15:21:11 S: * OK The Microsoft Exchange IMAP4 service is ready.
[WQBRAEIAUABSADAAMQBDAEEAMAAwADgAOAAuAEMAQQBOAFAAUgBEADAAMQAuAFAAUgBPAEQALgBPAFUAVABMAE8ATwBLAC4AQwBPAE0A]
15:21:11 C: A0 CAPABILITY
15:21:11 S: * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR
UIDPLUS ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+
15:21:11 S: A0 OK CAPABILITY completed.
15:21:11 Retrieving password (keychain or user request)
15:21:11 C: A1 AUTHENTICATE XOAUTH2 ••••••••••
15:21:13 S: A1 NO AUTHENTICATE failed.
15:21:13 Error: Server response: “A1 NO AUTHENTICATE failed.”.
Command attempted: “A1 AUTHENTICATE XOAUTH2
••••••••••”.
15:21:13 Retrieving password (keychain or user request)
15:21:13 Error code: 12
15:21:13 Failed action (1000). Reset observed read/write timeouts: 8/8
15:21:13 Handling reply
15:21:58 Running action
15:21:58 Sending request (8)
15:21:58 Handling request
15:21:58 Trying to disconnect nicely (8)...
15:21:58 C: A2 LOGOUT
15:21:58 S: * BYE Microsoft Exchange Server IMAP4 server signing off.
15:21:58 S: A2 OK LOGOUT completed.
15:21:58 Clearing connection to outlook.office365.com
15:21:59 Ready to run action (retry count: 1)
15:21:59 Clearing connection to outlook.office365.com
15:21:59 Trying to connect to outlook.office365.com on port 993
(CFNetwork) without STARTTLS (required)
15:21:59 Resolved hostname (outlook.office365.com).
15:21:59 Prepare secure connection...
15:21:59 Successful connection.
15:21:59 Initiating secure connection...
15:21:59 Returned (4)...
15:21:59 Protocol version: kTLSProtocol12
15:22:00 S: * OK The Microsoft Exchange IMAP4 service is ready.
[WQBRAEIAUABSADAAMQBDAEEAMAAwADEAMAAuAEMAQQBOAFAAUgBEADAAMQAuAFAAUgBPAEQALgBPAFUAVABMAE8ATwBLAC4AQwBPAE0A]
15:22:00 C: A0 CAPABILITY
15:22:00 S: * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR
UIDPLUS ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+
15:22:00 S: A0 OK CAPABILITY completed.
15:22:00 Retrieving password (keychain or user request)
15:22:00 C: A1 AUTHENTICATE XOAUTH2 ••••••••••
15:22:01 S: A1 NO AUTHENTICATE failed.
15:22:01 Error: Server response: “A1 NO AUTHENTICATE failed.”.
Command attempted: “A1 AUTHENTICATE XOAUTH2
••••••••••”.
15:22:01 Retrieving password (keychain or user request)
15:22:01 Error code: 12
15:22:01 Failed action (1000). Reset observed read/write timeouts: 8/8
15:22:01 Handling reply
15:22:08 Terminating non-running connection...
15:24:08 Running action
15:24:08 Sending request (14)
15:24:08 Handling request
15:24:08 Trying to disconnect nicely (30)...
15:24:08 C: R2 LOGOUT
15:24:08 Error: Connection error (Broken pipe).
15:24:08 Clearing connection to outlook.office365.com
15:24:08 Ready to run action (retry count: 0)
15:24:08 Disconnecting
15:24:08 Clearing connection to outlook.office365.com
15:24:08 Completed action (3). Observed read/write timeouts: 8/8
15:24:08 Handling reply
```
Cheers,
Marco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20200519/29ab818d/attachment.htm>
More information about the mailmate
mailing list