src/Request/ProtocolParameter.php 1 location
|
@@ 105-116 (lines=12) @@
|
| 102 |
|
/** |
| 103 |
|
* {@inheritDoc} |
| 104 |
|
*/ |
| 105 |
|
public function forTemporaryCredentials() |
| 106 |
|
{ |
| 107 |
|
$parameters = $this->getBase(); |
| 108 |
|
|
| 109 |
|
if ($this->config->hasCallbackUri()) { |
| 110 |
|
$parameters['oauth_callback'] = $this->config->getCallbackUri(); |
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
$parameters['oauth_signature'] = $this->getSignature($parameters, $this->config->getTemporaryCredentialsUrl()); |
| 114 |
|
|
| 115 |
|
return $parameters; |
| 116 |
|
} |
| 117 |
|
|
| 118 |
|
/** |
| 119 |
|
* {@inheritDoc} |
src/Request/RequestConfig.php 1 location
|
@@ 98-109 (lines=12) @@
|
| 95 |
|
/** |
| 96 |
|
* {@inheritDoc} |
| 97 |
|
*/ |
| 98 |
|
public function getTemporaryCredentialsAuthorizationHeader() |
| 99 |
|
{ |
| 100 |
|
$parameters = $this->getBaseProtocolParameters(); |
| 101 |
|
|
| 102 |
|
if ($this->config->hasCallbackUri()) { |
| 103 |
|
$parameters['oauth_callback'] = $this->config->getCallbackUri(); |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
$this->addSignatureParameter($parameters, $this->getTemporaryCredentialsUrl()); |
| 107 |
|
|
| 108 |
|
return $this->normalizeProtocolParameters($parameters); |
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
/** |
| 112 |
|
* {@inheritDoc} |