victorbjelkholm
4011b3674d
Throwing OAuthException without oauth_consumer_key
2013-11-19 20:58:34 +01:00
victorbjelkholm
da8c3c46c5
Remove parameter should be passed reference
2013-11-19 20:54:56 +01:00
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.
2013-06-06 05:58:53 +02:00
Jacob Kiers
6677c1da7d
The output of Server::verifyToken is now a hash.
2013-02-15 12:09:56 +00:00
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.
2013-02-11 14:02:14 +00:00
Jacob Kiers
4e6cc6c811
Bugfix in Server and CS Fixes.
2013-02-11 09:30:45 +00:00
Jacob Kiers
646e466639
Also use RequestInterface in Signature Methods.
2013-02-08 15:26:42 +00:00
Jacob Kiers
e8edc17196
Have the Server use RequestInterface.
2013-02-08 15:14:38 +00:00
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.
2013-02-08 10:57:53 +00:00
Jacob Kiers
c471cd2b8d
Renamed DataStore to DataStoreInterface
...
Also, the Interface now contains comments on the expected return values.
2013-02-08 10:37:21 +00:00
Jacob Kiers
204ec8b42f
Renamed namespace to JacobKiers
2013-02-08 10:32:26 +00:00
GaryJones
87a4b17394
Refactor common code for getting the signature key.
2012-11-23 12:30:38 +00:00
GaryJones
d94446782a
Rename OAuth\Exception back to OAuthException, to follow the standard PHP way of naming predefined / SPL exceptions.
2012-11-22 18:11:12 +00:00
GaryJones
f8be34b748
Typo
2012-11-22 17:47:43 +00:00
GaryJones
fce57a4e6e
Add new NullToken, to satisfy type hint checks when token would otherwise not be set.
2012-11-22 17:37:12 +00:00
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.
2012-11-22 16:27:47 +00:00
GaryJones
bfabd20ae4
Fix bug where the colon between host and port would appear, even when port was an empty string.
2012-11-22 16:25:34 +00:00
GaryJones
a58bceb4aa
Make callback_url property protected, and add get/set methods.
2012-11-22 13:17:23 +00:00
GaryJones
b06d99ccbf
Everything documented, including clearer author attribution.
...
Renamed a few classes to rely more on OAuth namespace, instead of OAuth class prefix.
2012-11-21 11:10:57 +00:00
Gary Jones
12afd40c6e
Change all references to consumer to client, as per RFC 5849.
2012-11-18 02:33:29 +00:00
Gary Jones
abe9e182cb
Fix incorrect namespace.
2012-11-18 01:33:27 +00:00
Gary Jones
36add4e946
Use single quotes for simple strings.
2012-11-18 01:32:38 +00:00
Gary Jones
bebf65bfed
Fix issue for PHP 5.4.8 where the host part from parse_url seems to also include the port as well.
2012-11-18 01:18:11 +00:00
Gary Jones
dc7230cbb4
Fix old array_map() reference.
2012-11-17 23:14:25 +00:00
Gary Jones
f896020b35
Change static calls from method_names to methodNames.
2012-11-17 22:33:43 +00:00
Gary Jones
63b4a0f58d
Made package PSR-2 compatible.
...
Since this is a fork, also renamed the namespaces and containing folder.
2012-11-17 21:13:44 +00:00
Eher
26a92abbdc
Refactoring
2012-02-13 01:52:03 -02:00
Eher
9cc377d653
SignatureMethod removed from namespace
2012-02-08 23:35:31 -02:00
Eher
e2fa21dc44
Namespace from signatures methods was changed
2012-02-08 22:31:18 -02:00
Eher
ebb686a715
Vendor's structure created
2012-02-08 17:34:48 -02:00
Eher
4b27af082d
Initial import
2012-02-08 17:12:44 -02:00