Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2019-10-22 14:50:01 +0300
committerThomas Bruederli <thomas@roundcube.net>2020-06-16 09:17:52 +0300
commit1e6a2f4f49477be7ac8784b6a137eb181f2eb9f1 (patch)
tree069665ab812888aec8ed233fc23cbdcbc7295cc7 /program/include/rcmail.php
parent1c76c8440ff0c393b8c18b3dd4fc0ed65c28f66b (diff)
Basic support for OAuth2 user login and IMAP/SMTP authentication
- Add "Login with XXX" button to login screen if oauth is configured - Perform OAuth login procedure and get an access token - Implement XOAUTH2 authentication type for IAMP and SMTP Requires a patched and not yet released version of Net_SMTP.
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 1122152b5..8bf25b41d 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -33,7 +33,7 @@ class rcmail extends rcube
*
* @var array
*/
- static public $main_tasks = array('mail','settings','addressbook','login','logout','utils','dummy');
+ static public $main_tasks = array('mail','settings','addressbook','login','logout','utils','oauth','dummy');
/**
* Current task.
@@ -140,6 +140,9 @@ class rcmail extends rcube
$GLOBALS['OUTPUT'] = $this->load_gui(!empty($_REQUEST['_framed']));
}
+ // load oauth manager
+ $this->oauth = rcmail_oauth::get_instance();
+
// run init method on all the plugins
$this->plugins->init($this, $this->task);
}