当前位置: 首页>>代码示例>>PHP>>正文


PHP AbstractProvider::getAuthorizationParameters方法代码示例

本文整理汇总了PHP中League\OAuth2\Client\Provider\AbstractProvider::getAuthorizationParameters方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractProvider::getAuthorizationParameters方法的具体用法?PHP AbstractProvider::getAuthorizationParameters怎么用?PHP AbstractProvider::getAuthorizationParameters使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在League\OAuth2\Client\Provider\AbstractProvider的用法示例。


在下文中一共展示了AbstractProvider::getAuthorizationParameters方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getAuthorizationParameters

 protected function getAuthorizationParameters(array $options)
 {
     $parameters = parent::getAuthorizationParameters($options);
     if (isset($options["type"])) {
         $parameters["type"] = $options["type"];
     }
     return $parameters;
 }
开发者ID:IS-smcleod,项目名称:oauth2-basecamp,代码行数:8,代码来源:Basecamp.php

示例2: getAuthorizationParameters

 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;
 }
开发者ID:ElieGallet,项目名称:PIFE2,代码行数:9,代码来源:get_oauth_token.php

示例3: getAuthorizationParameters

 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;
 }
开发者ID:shadowhand,项目名称:oauth2-untappd,代码行数:11,代码来源:Untappd.php

示例4: getAuthorizationParameters

 /**
  * 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;
 }
开发者ID:djchen,项目名称:oauth2-fitbit,代码行数:17,代码来源:Fitbit.php

示例5: getAuthorizationParameters

 protected function getAuthorizationParameters(array $options)
 {
     $params = array_merge(parent::getAuthorizationParameters($options), array_filter(['language' => $this->language]));
     return $params;
 }
开发者ID:hayageek,项目名称:oauth2-yahoo,代码行数:5,代码来源:Yahoo.php

示例6: getAuthorizationParameters

 protected function getAuthorizationParameters(array $options)
 {
     $params = array_merge(parent::getAuthorizationParameters($options), array_filter(['hd' => $this->hostedDomain, 'access_type' => $this->accessType, 'authuser' => '-1']));
     return $params;
 }
开发者ID:ishawge,项目名称:jorani,代码行数:5,代码来源:Google.php

示例7: getAuthorizationParameters

 protected function getAuthorizationParameters(array $options)
 {
     $params = parent::getAuthorizationParameters($options);
     $params['nonce'] = uniqid();
     return $params;
 }
开发者ID:ollieread,项目名称:justgiving-oauth2,代码行数:6,代码来源:JustGiving.php

示例8: getAuthorizationParameters

 protected function getAuthorizationParameters(array $options)
 {
     $params = array_merge(parent::getAuthorizationParameters($options), array_filter(['response_type' => $this->responseType, 'display' => $this->display]));
     return $params;
 }
开发者ID:autowp,项目名称:oauth2-vk,代码行数:5,代码来源:Vk.php

示例9: getAuthorizationParameters

 protected function getAuthorizationParameters(array $options)
 {
     return array_intersect_key(parent::getAuthorizationParameters($options), array_flip(['client_id', 'response_type']));
 }
开发者ID:rmasters,项目名称:oauth2-assembla,代码行数:4,代码来源:Assembla.php

示例10: getAuthorizationParameters

 protected function getAuthorizationParameters(array $options)
 {
     $options = parent::getAuthorizationParameters($options);
     $options['purpose'] = $this->purpose;
     return $options;
 }
开发者ID:smtech,项目名称:oauth2-canvaslms,代码行数:6,代码来源:CanvasLMS.php

示例11: getAuthorizationParameters

 /**
  * 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;
 }
开发者ID:widerfunnel,项目名称:oauth2-optimizely,代码行数:13,代码来源:Optimizely.php

示例12: getAuthorizationParameters

 /**
  * 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;
 }
开发者ID:gsomoza,项目名称:oauth2-sign2pay,代码行数:16,代码来源:Sign2Pay.php


注:本文中的League\OAuth2\Client\Provider\AbstractProvider::getAuthorizationParameters方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。