Move OAuth2 to core

This commit is contained in:
the-djmaze 2024-04-24 02:02:37 +02:00
parent fdc019e43c
commit cd8b3936fb
9 changed files with 3 additions and 10 deletions

View file

@ -14,8 +14,8 @@ class LoginGMailPlugin extends \RainLoop\Plugins\AbstractPlugin
const
NAME = 'GMail OAuth2',
VERSION = '2.36',
RELEASE = '2024-03-27',
REQUIRED = '2.36.0',
RELEASE = '2024-04-23',
REQUIRED = '2.36.1',
CATEGORY = 'Login',
DESCRIPTION = 'GMail IMAP, Sieve & SMTP login using RFC 7628 OAuth2';
@ -33,13 +33,6 @@ class LoginGMailPlugin extends \RainLoop\Plugins\AbstractPlugin
$this->addHook('smtp.before-login', 'clientLogin');
$this->addHook('sieve.before-login', 'clientLogin');
// set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__);
spl_autoload_register(function($classname){
if (str_starts_with($classname, 'OAuth2\\')) {
include_once __DIR__ . strtr("\\{$classname}", '\\', DIRECTORY_SEPARATOR) . '.php';
}
});
$this->addPartHook('LoginGMail', 'ServiceLoginGMail');
// Prevent Disallowed Sec-Fetch Dest: document Mode: navigate Site: cross-site User: true

View file

@ -22,7 +22,7 @@
*
* @author Pierrick Charron <pierrick@webstart.fr>
* @author Anis Berejeb <anis.berejeb@gmail.com>
* @version 1.3.1-dev
* @version 1.3.1
*/
namespace OAuth2;