MDL-58090 oauth2: Store a list of oauth2 services

Build an admin page where OAuth 2 services can be installed and configured.

Part of MDL-58220
This commit is contained in:
Damyon Wiese
2017-04-03 13:39:02 +08:00
parent bf919ddf02
commit 60237253a2
34 changed files with 2512 additions and 22 deletions
+3 -2
View File
@@ -2766,9 +2766,9 @@ class curl {
// All settings of this class should be init here.
$this->resetopt();
if (!empty($settings['debug'])) {
//if (!empty($settings['debug'])) {
$this->debug = true;
}
//}
if (!empty($settings['cookie'])) {
if($settings['cookie'] === true) {
$this->cookie = $CFG->dataroot.'/curl_cookie.txt';
@@ -2949,6 +2949,7 @@ class curl {
* Set HTTP Request Header
*
* @param array $header
* @param bool $replace If true, will remove any existing headers before appending the new one.
*/
public function setHeader($header) {
if (is_array($header)) {