コード例 #1
0
ファイル: LinkedIn.php プロジェクト: lcobucci/social
 /**
  * @param array $scopes
  * @param string $state
  * @return array
  */
 protected function createAuthorizationParameters(array $scopes, $state)
 {
     $scopes[] = 'r_basicprofile';
     $scopes[] = 'r_emailaddress';
     return parent::createAuthorizationParameters($scopes, $state);
 }
コード例 #2
0
ファイル: Google.php プロジェクト: lcobucci/social
 /**
  * @param array $scopes
  * @param string $state
  * @return array
  */
 protected function createAuthorizationParameters(array $scopes, $state)
 {
     $scopes[] = 'https://www.googleapis.com/auth/userinfo.email';
     $scopes[] = 'https://www.googleapis.com/auth/userinfo.profile';
     return parent::createAuthorizationParameters($scopes, $state);
 }