Compare commits
7 Commits
brutuscat/
...
master
Author | SHA1 | Date | |
---|---|---|---|
95477a7710 | |||
e507a5dc8b | |||
11f934ee88 | |||
3099dcf617 | |||
![]() |
d2b3281815 | ||
999a007b3b | |||
![]() |
3ef8e25bdb |
@ -1,9 +1,15 @@
|
|||||||
|
sudo: false
|
||||||
|
|
||||||
language: php
|
language: php
|
||||||
php:
|
php:
|
||||||
|
- 5.3
|
||||||
- 5.4
|
- 5.4
|
||||||
- 5.5
|
- 5.5
|
||||||
|
- 5.6
|
||||||
|
- 7
|
||||||
|
- hhvm
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- composer selfupdate --quiet
|
- composer selfupdate --quiet
|
||||||
- composer install --dev
|
- composer install --prefer-dist
|
||||||
- vendor/phpunit/phpunit/composer/bin/phpunit
|
- vendor/phpunit/phpunit/composer/bin/phpunit
|
||||||
|
@ -8,3 +8,4 @@ Andy Smith authored the original code (http://oauth.googlecode.com/svn/code/php/
|
|||||||
* Jacob Kiers (@jacobkiers)
|
* Jacob Kiers (@jacobkiers)
|
||||||
* Alexandru G. (@vimishor)
|
* Alexandru G. (@vimishor)
|
||||||
* Victor Bjelkholm (@VictorBjelkholm)
|
* Victor Bjelkholm (@VictorBjelkholm)
|
||||||
|
* David Macek (@elieux)
|
||||||
|
@ -243,7 +243,7 @@ class Server
|
|||||||
|
|
||||||
$token = $this->data_store->lookupToken($consumer, $token_type, $token_key);
|
$token = $this->data_store->lookupToken($consumer, $token_type, $token_key);
|
||||||
if (!$token) {
|
if (!$token) {
|
||||||
throw new OAuthException("Invalid $token_type token: $token_field");
|
throw new OAuthException("Invalid $token_type token: $token_key");
|
||||||
}
|
}
|
||||||
return $token;
|
return $token;
|
||||||
}
|
}
|
||||||
|
@ -27,28 +27,6 @@ use \JacobKiers\OAuth\Request\RequestInterface;
|
|||||||
*/
|
*/
|
||||||
abstract class SignatureMethod implements SignatureMethodInterface
|
abstract class SignatureMethod implements SignatureMethodInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* Return the name of the Signature Method (ie HMAC-SHA1).
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
abstract public function getName();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Build up the signature.
|
|
||||||
*
|
|
||||||
* NOTE: The output of this function MUST NOT be urlencoded.
|
|
||||||
* the encoding is handled in OAuthRequest when the final
|
|
||||||
* request is serialized.
|
|
||||||
*
|
|
||||||
* @param JacobKiers\OAuth\Request\RequestInterface $request
|
|
||||||
* @param JacobKiers\OAuth\Consumer\ConsumerInterface $consumer
|
|
||||||
* @param JacobKiers\OAuth\Token\TokenInterface $token
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
abstract public function buildSignature(RequestInterface $request, ConsumerInterface $consumer, TokenInterface $token = null);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the signature key, made up of consumer and optionally token shared secrets.
|
* Get the signature key, made up of consumer and optionally token shared secrets.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user