Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

New Post: Support for outlook oaut2.0

$
0
0
Hi! do you want to include support for imap with oauth 2.0 authentication for outlook? in your example for download I added the support for oauth 2.0 for outlook but I dnn't understand how to set the cofiguration for outlook here is the link
https://msdn.microsoft.com/en-us/library/dn440163.aspx

Your app/server passes the access token to our IMAP service in the AUTHENTICATE command. We accept a base64-encoded string that contains:
The user name.
The authentication type Bearer for direct OAuth 2.0 requests.
The access token granted by MSA.
For example, your app/server would base-64 encode this string:
user={user@domain.com}^Aauth=Bearer {Access Token}^A^A

The example on the links is this

[connection begins]
C: 000 CAPABILITY
S: * CAPABILITY IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2
S: 000 OK CAPABILITY completed
C: 001 AUTHENTICATE XOAUTH2
S: +
C: {base64-encoded string}
S: * CAPABILITY IMAP4rev1
S: 001 OK OAuth authentication successful
[connection continues]

I change the example added the user and the access token but in you SendAndReceive method doesn't conect I don't know how

If you want I can pass your code example with the modifications for oaut2.0 with outlook

Viewing all articles
Browse latest Browse all 1952

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>