Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
GoogleOpenIDService.php
1 <?php
2 /**
3  * GoogleOpenIDService class file.
4  *
5  * @author Maxim Zemskov <nodge@yandex.ru>
6  * @link http://code.google.com/p/yii-eauth/
7  * @license http://www.opensource.org/licenses/bsd-license.php
8  */
9 
10 require_once dirname(dirname(__FILE__)) . '/EOpenIDService.php';
11 
12 /**
13  * Google provider class.
14  * @package application.extensions.eauth.services
15  */
17 
18  protected $name = 'google';
19  protected $title = 'Google';
20  protected $type = 'OpenID';
21  protected $jsArguments = array('popup' => array('width' => 880, 'height' => 520));
22 
23  protected $url = 'https://www.google.com/accounts/o8/id';
24  protected $requiredAttributes = array(
25  'name' => array('firstname', 'namePerson/first'),
26  //'lastname' => array('lastname', 'namePerson/last'),
27  //'email' => array('email', 'contact/email'),
28  //'language' => array('language', 'pref/language'),
29  );
30 
31  /*protected function fetchAttributes() {
32  $this->attributes['fullname'] = $this->attributes['name'].' '.$this->attributes['lastname'];
33  }*/
34 }