mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 18:36:42 +02:00

Updated the various plugins to use OAuth 2.0 for authentication against google apis. Google are phasing out AuthSub and pushing OAuth as the replacement. This changes repository_googledocs, repository_picasa, portfolio_googledocs and portfolio_picasa The token for requests is now stored in session rather than a user prefence and it persists less but doesn't bother the user more than necessary. The google docs portfolio plugin is converted to use resumable upload API as this appears to be what Google have replaced this with. Unfortunately unlike authsub OAuth will require some setup by admins, this is linked as a docs page.
31 lines
1.2 KiB
PHP
31 lines
1.2 KiB
PHP
<?php
|
|
// This file is part of Moodle - http://moodle.org/
|
|
//
|
|
// Moodle is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// Moodle is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
/**
|
|
* Version details
|
|
*
|
|
* @package repository
|
|
* @subpackage picasa
|
|
* @copyright 2009 Dan Poltawski
|
|
* @author Dan Poltawski <talktodan@gmail.com>
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
*/
|
|
|
|
defined('MOODLE_INTERNAL') || die();
|
|
|
|
$plugin->version = 2012051400; // The current plugin version (Date: YYYYMMDDXX).
|
|
$plugin->requires = 2012051100; // Requires this Moodle version.
|
|
$plugin->component = 'repository_picasa'; // Full name of the plugin (used for diagnostics).
|