Youtube new authentication

This commit is contained in:
Nicolas Le Goff
2012-05-03 20:53:27 +02:00
parent 862e9cfee6
commit df50e771d3

View 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);
}
}