Changing php-imap extension to provide oauth authentication

My php application logs in to Gmail through oauth, providing passkeys and receiving headers for all messages in the inbox. The php-imap extension only allows login / password authentication. I want to change the extension so that it also supports oauth based authentication. I need to figure out how to make this change inside the extension code itself and compile it. The bad part, I do not really understand where to make changes and how to compile php extension

I used to use Zend for IMAP classes for this task. They are very slow, and gmail tends to disconnect if it takes more than 40-45 minutes or so. For very large mailboxes this happened often. I tested this with the php-imap extension and it worked almost 10 times faster than zend one (I think starting from writing it in C)

So, I need to find out how and where authentication occurs in the current php-imap code and how to recompile it after making the changes.

Any pointers are appreciated.

+5
source share
2 answers

PHP c-client libary, , , , OAuth . .

PHP . , /.

+2
0

All Articles