How to do OAUth support in IMAP c-client library
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 s开发者_高级运维imilar thing.
Also oAuth support in PHP IMAP library has already included.
Can any one suggest how to do oAuth support using c-client library .
Question is old but really important.
Don't know how you can use c-client.
But using php_sockets Implemented a simple library.
Delete mail function is not yet added. But you can take a look if it satisfies your need.
Try example. https://github.com/vmuthal/VivOAuthIMAP
Or else you can go for Zend.
精彩评论