Example #1
0
 protected function getAuthorizationParameters(array $options)
 {
     $parameters = parent::getAuthorizationParameters($options);
     if (isset($options["type"])) {
         $parameters["type"] = $options["type"];
     }
     return $parameters;
 }
Example #2
0
 protected function getAuthorizationParameters(array $options)
 {
     if (is_array($this->scope)) {
         $separator = $this->getScopeSeparator();
         $this->scope = implode($separator, $this->scope);
     }
     $params = array_merge(parent::getAuthorizationParameters($options), array_filter(['hd' => $this->hostedDomain, 'access_type' => $this->accessType, 'scope' => $this->scope, 'authuser' => '-1']));
     return $params;
 }
Example #3
0
 protected function getAuthorizationParameters(array $options)
 {
     $params = parent::getAuthorizationParameters($options);
     // Untappd uses a non-standard redirect name
     $params['redirect_url'] = $params['redirect_uri'];
     unset($params['redirect_uri']);
     // Untappd does not support state passing
     $this->state = '';
     unset($params['state']);
     return $params;
 }
Example #4
0
 /**
  * Returns authorization parameters based on provided options.
  * Fitbit does not use the 'approval_prompt' param and here we remove it.
  *
  * @param array $options
  *
  * @return array Authorization parameters
  */
 protected function getAuthorizationParameters(array $options)
 {
     $params = parent::getAuthorizationParameters($options);
     unset($params['approval_prompt']);
     if (!empty($options['prompt'])) {
         $params['prompt'] = $options['prompt'];
     }
     return $params;
 }
Example #5
0
 protected function getAuthorizationParameters(array $options)
 {
     $params = array_merge(parent::getAuthorizationParameters($options), array_filter(['language' => $this->language]));
     return $params;
 }
Example #6
0
 protected function getAuthorizationParameters(array $options)
 {
     $params = array_merge(parent::getAuthorizationParameters($options), array_filter(['hd' => $this->hostedDomain, 'access_type' => $this->accessType, 'authuser' => '-1']));
     return $params;
 }
 protected function getAuthorizationParameters(array $options)
 {
     $params = parent::getAuthorizationParameters($options);
     $params['nonce'] = uniqid();
     return $params;
 }
Example #8
0
 protected function getAuthorizationParameters(array $options)
 {
     $params = array_merge(parent::getAuthorizationParameters($options), array_filter(['response_type' => $this->responseType, 'display' => $this->display]));
     return $params;
 }
Example #9
0
 protected function getAuthorizationParameters(array $options)
 {
     return array_intersect_key(parent::getAuthorizationParameters($options), array_flip(['client_id', 'response_type']));
 }
Example #10
0
 protected function getAuthorizationParameters(array $options)
 {
     $options = parent::getAuthorizationParameters($options);
     $options['purpose'] = $this->purpose;
     return $options;
 }
 /**
  * Returns authorization parameters based on provided options.
  *
  * @param array $options
  *
  * @return array
  */
 protected function getAuthorizationParameters(array $options)
 {
     $options = parent::getAuthorizationParameters($options);
     $options['scopes'] = "all";
     return $options;
 }
Example #12
0
 /**
  * getAuthorizationParameters
  * @param array $options
  * @return array
  */
 protected function getAuthorizationParameters(array $options)
 {
     $params = parent::getAuthorizationParameters($options);
     if (isset($options['ref_id'])) {
         $params['ref_id'] = $options['ref_id'];
     }
     if (isset($options['amount'])) {
         $params['amount'] = $options['amount'];
     }
     return $params;
 }