diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2019-10-22 14:50:01 +0300 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2020-06-16 09:17:52 +0300 |
commit | 1e6a2f4f49477be7ac8784b6a137eb181f2eb9f1 (patch) | |
tree | 069665ab812888aec8ed233fc23cbdcbc7295cc7 /program/include/rcmail.php | |
parent | 1c76c8440ff0c393b8c18b3dd4fc0ed65c28f66b (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.php | 5 |
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); } |