本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例5: getAuthorizationParameters
protected function getAuthorizationParameters(array $options)
{
$params = array_merge(parent::getAuthorizationParameters($options), array_filter(['language' => $this->language]));
return $params;
}
示例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;
}
示例7: getAuthorizationParameters
protected function getAuthorizationParameters(array $options)
{
$params = parent::getAuthorizationParameters($options);
$params['nonce'] = uniqid();
return $params;
}
示例8: getAuthorizationParameters
protected function getAuthorizationParameters(array $options)
{
$params = array_merge(parent::getAuthorizationParameters($options), array_filter(['response_type' => $this->responseType, 'display' => $this->display]));
return $params;
}
示例9: getAuthorizationParameters
protected function getAuthorizationParameters(array $options)
{
return array_intersect_key(parent::getAuthorizationParameters($options), array_flip(['client_id', 'response_type']));
}
示例10: getAuthorizationParameters
protected function getAuthorizationParameters(array $options)
{
$options = parent::getAuthorizationParameters($options);
$options['purpose'] = $this->purpose;
return $options;
}
示例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;
}
示例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;
}