Jacob Kiers
95477a7710
Merge pull request #9 from jacobkiers/update-travis-configuration
...
Update travis configuration: test PHP 5.3-5.6; 7 and HHVM.
8 years ago
Jacob Kiers
e507a5dc8b
Update travis configuration
...
Test more PHP versions, in order to maintain compatibility. Also updates
the composer install command.
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
8 years ago
Jacob Kiers
11f934ee88
Merge pull request #8 from jacobkiers/fix-7-abstract-class
...
Fix interface inheritance for PHP 5.3.0 - 5.3.8
8 years ago
Jacob Kiers
3099dcf617
Maintain compatibility for PHP 5.3.0 - 5.3.8
...
Interface inheritance is not possible before PHP 5.3.9. That is an
artefact of PHP bug 43200 (https://bugs.php.net/43200 ).
Since the composer.json states that the PHP versions >= 5.3.0 are
supported, we have to maintain compatibility with PHP 5.3.X.
Fixes : #7
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
8 years ago
Jacob Kiers
d2b3281815
Release 1.0.11
...
This release fixes a little bug in the exception that is thrown when an
invalid token is encountered.
Reported and fixed by @elieux.
Signed-off-by: Jacob Kiers <jacob@alphacomm.nl>
8 years ago
Jacob Kiers
999a007b3b
Merge pull request #6 from elieux/master-fix1
...
Fix variable name when creating an "invalid token" exception
8 years ago
David Macek
3ef8e25bdb
Fix variable name when creating an "invalid token" exception
8 years ago
Jacob Kiers
4f352302a1
Made version parameter private (by @vimishor).
...
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
9 years ago
Alexandru G
cc7992f2d1
oauth_version parameter should be optional
9 years ago
Jacob Kiers
5616fa0756
Updated CONTRIBUTORS.md and started a change log.
...
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
9 years ago
Jacob Kiers
f8ffcd6f87
Added tests for new required 'oauth_consumer_key'.
...
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
9 years ago
Jacob Kiers
e4e8bc2f90
Merge remote-tracking branch 'vb/master'
9 years ago
victorbjelkholm
4011b3674d
Throwing OAuthException without oauth_consumer_key
9 years ago
victorbjelkholm
fdb6c2df49
Update travis.yml
9 years ago
victorbjelkholm
da8c3c46c5
Remove parameter should be passed reference
9 years ago
victorbjelkholm
cec7f31cda
Change colors=false to colors=true
9 years ago
Jacob Kiers
ca5c3596dc
Added .gitattributes
...
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
10 years ago
Jacob Kiers
b3d4f9b6bc
Added CONTRIBUTORS.md file.
...
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
10 years ago
Alexandru G
087cb1278f
Because `$token` refs an object, this statement will always be true. Therefore an empty `oauth_token` param will be added to each request, wich will break Bitbucket authorization process.
...
To fix this, we need to check if token key is empty and ignore it.
10 years ago
Jacob Kiers
6677c1da7d
The output of Server::verifyToken is now a hash.
10 years ago
Jacob Kiers
097b0af7b4
Merge pull request #1 from jacobkiers/feature/use-interfaces
...
Use Interfaces everywhere.
10 years ago
Jacob Kiers
8bd355f556
Use Interfaces anywhere.
...
In practice, there were still too many concrete classes, which makes
integration into a framework hard. To overcome this, the codebase has
been refactored to use Interfaces when a resource is needed.
All necessary Interfaces have been created, and the existing concrete
classes now implement these interfaces.
10 years ago
Jacob Kiers
4e6cc6c811
Bugfix in Server and CS Fixes.
10 years ago
Jacob Kiers
73c99e3652
Fix SignatureMethodTest to use RequestInterface.
10 years ago
Jacob Kiers
646e466639
Also use RequestInterface in Signature Methods.
10 years ago
Jacob Kiers
e8edc17196
Have the Server use RequestInterface.
10 years ago
Jacob Kiers
74fd426e45
Also build against PHP 5.5.
...
But a failing build agains PHP 5.5 should not fail the whole build.
10 years ago
Jacob Kiers
be09ba0216
Added RequestInterface to make integration easier.
...
Since now only a RequestInterface is needed instead of a Request object,
it becomes easier to use the Server component with a different Request
object, such as the Symfony or Zend Framework Request objects.
This will now only need a small wrapper, instead of extending and
rewriting the existing Request object.
10 years ago
Jacob Kiers
c471cd2b8d
Renamed DataStore to DataStoreInterface
...
Also, the Interface now contains comments on the expected return values.
10 years ago
Jacob Kiers
204ec8b42f
Renamed namespace to JacobKiers
10 years ago
Jacob Kiers
81a1af738b
Update information so the fork won't create issues
...
Just some updates to the Composer and Travis configuration and the
LICENSE file.
10 years ago
GaryJones
354f31fd6d
Stop emails from Travis notifications.
10 years ago
GaryJones
49ecd40ba5
Undo travis config simplification, as tests have now passed in the meantime.
10 years ago
GaryJones
a404154b2c
Simplify Travis config file to get it working.
10 years ago
GaryJones
2890e3cd33
Add Travis build status image to readme.
10 years ago
GaryJones
d5b23e95bb
Update gitignore file
10 years ago
GaryJones
391a3f2a91
Add travis config file
10 years ago
GaryJones
87a4b17394
Refactor common code for getting the signature key.
10 years ago
GaryJones
a5ba220ae1
Add tests for concrete method inside abstract SignatureMethod class.
10 years ago
GaryJones
7457f612b7
Add test for NullToken.
10 years ago
GaryJones
d94446782a
Rename OAuth\Exception back to OAuthException, to follow the standard PHP way of naming predefined / SPL exceptions.
10 years ago
GaryJones
f8be34b748
Typo
10 years ago
GaryJones
fce57a4e6e
Add new NullToken, to satisfy type hint checks when token would otherwise not be set.
10 years ago
GaryJones
af1993ac3a
Make the Token arg of buildSignature() methods optional.
...
RSA-SHA1 buildSignature() doesn't use it at all, and the other two allow for there to be no token, as on the initial client request. The token shared-secret as taken to be an empty string.
10 years ago
GaryJones
bfabd20ae4
Fix bug where the colon between host and port would appear, even when port was an empty string.
10 years ago
GaryJones
52d9317cfd
Add unit tests for signature methods, and a couple for Request.
10 years ago
GaryJones
b564cbd103
Change line endings...again :-/
10 years ago
GaryJones
1f05207957
Add basic client and token unit tests.
10 years ago
GaryJones
7ef4283511
Limit phpunit dev dependency to stable.
10 years ago
GaryJones
a58bceb4aa
Make callback_url property protected, and add get/set methods.
10 years ago