[PEAR-BUG] Req #18735 [Com]: Gmail OAuth support

[email protected] ("[email protected]")
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at http://pear.php.net/bugs/bug.php?id=18735&edit=1

 ID:               18735
 Comment by:       [email protected]
 Reported By:      dominik at dokdok dot com
 Summary:          Gmail OAuth support
 Status:           Assigned
 Type:             Feature/Change Request
 Package:          Net_SMTP
 Package Version:  1.6.1
 PHP Version:      5.3.6
 Assigned To:      jon
 Roadmap Versions: 
 New Comment:

Unit tests are added. Let me know if you need anything else


Previous Comments:
------------------------------------------------------------------------

[2011-08-17 14:18:11] dominikgehl

Added #patch bug:18735;patch:config.php.dist.patch;revision:1313587091;.

------------------------------------------------------------------------

[2011-08-17 14:16:43] dominikgehl

Added #patch
bug:18735;patch:auth_xoauth_3legged.phpt;revision:1313587003;.

------------------------------------------------------------------------

[2011-08-17 14:16:16] dominikgehl

Added #patch
bug:18735;patch:auth_xoauth_2legged.phpt;revision:1313586976;.

------------------------------------------------------------------------

[2011-08-17 09:30:12] jon

-Status:      Open
+Status:      Assigned
-Assigned To:
+Assigned To: jon
Could you convert those examples into a unit test?  It's the best way we
have to 
ensure expected behavior as the code evolves.

------------------------------------------------------------------------

[2011-08-15 19:15:45] dominikgehl

usage for 3legged:

<?php
require './SMTP.php';

$host = 'smtp.gmail.com';
$from = '';

if (! ($smtp = new Net_SMTP('ssl://' . $host, 465))) {
	die('Unable to instantiate Net_SMTP');
}

if (PEAR::isError($e = $smtp->connect())) {
	die($e->getMessage() . "\n");
}

if (PEAR::isError($e = $smtp->auth($from, array('consumer_key' => '',
'consumer_secret' => '', 'token' => '', 'token_secret' => ''),
'XOAUTH'))) {
	die($e->getMessage() . "\n");
}

...
?>

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://pear.php.net/bugs/bug.php?id=18735

-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18735&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.