mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Youtube new authentication
This commit is contained in:
35
lib/classes/Bridge/Api/Auth/Youtube.class.php
Normal file
35
lib/classes/Bridge/Api/Auth/Youtube.class.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Phraseanet
|
||||
*
|
||||
* (c) 2005-2012 Alchemy
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
class Bridge_Api_Auth_Youtube extends Bridge_Api_Auth_OAuth2
|
||||
{
|
||||
|
||||
/**
|
||||
* Implements OAuth2.0 youtube specifications
|
||||
* @param array $supp_parameters
|
||||
* @return string
|
||||
*/
|
||||
public function get_auth_url(array $supp_parameters = array())
|
||||
{
|
||||
$supp_parameters = array_merge(
|
||||
$supp_parameters, array(
|
||||
'access_type' => 'offline',
|
||||
'approval_prompt' => 'force')
|
||||
);
|
||||
|
||||
return parent::get_auth_url($supp_parameters);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user