Пример #1
0
 /**
  * Get the POST fields for the token request.
  *
  * @param  string  $code
  *
  * @return array
  */
 protected function getTokenFields($code)
 {
     return parent::getTokenFields($code) + ['grant_type' => 'authorization_code'];
 }
Пример #2
0
 /**
  * Get the POST fields for the token request.
  *
  * @param  string  $code
  *
  * @return array
  */
 protected function getTokenFields($code)
 {
     return array_add(parent::getTokenFields($code), 'grant_type', 'authorization_code');
 }
Пример #3
0
 /**
  * {@inheritdoc}
  */
 protected function getCodeFields($state = null)
 {
     $fields = parent::getCodeFields($state);
     if ($this->popup) {
         $fields['display'] = 'popup';
     }
     return $fields;
 }