We are using IMAP c-client library in our application to download emails . Currently We are opening IMAP session by providing user name and password to imap_open() utility.
Now We want to implement oAuth support in our Application rather than asking the users to share their credentials details with us .
I have gone thorough the Gmail IMAP oAuth documentation and as per the documentation we can do oAuth support by sending the command AUTHENTICATE by the following way AUTHENTICATE XOAUTH (Base64 encoding of auth request parameter).
I have verified the IMAP c -client library utilities and not found any API's which does the similar thing.
Also oAuth support in PHP IMAP library has already included.
Can any one suggest how to do oAuth support using c-client library .