Don Neufeld
54b958436a
Added protection against multiple callback invocation on error path
2014-04-01 19:05:17 -07:00
Ciaran Jessup
d228aebb0b
Merge pull request #121 from knechtandreas/master
...
Add RSA-SHA1 support
2014-01-04 06:37:26 -08:00
Pieter Joost van de Sande
f24590182c
Remove trailing whitespaces
2013-05-06 08:42:23 +02:00
Pieter Joost van de Sande
d4143a6452
Add followRedirect client option to turn auto follow on or off
2013-05-05 23:04:10 +02:00
Andreas Knecht
635ee2c1f7
Added RSA-SHA1 signature method based on the fork from https://github.com/wraithgar/node-oauth . Added test that uses the RSA-SHA1 method and verifies the signature using a public key.
2012-12-20 10:09:56 +01:00
rolandboon
240a992553
Update lib/oauth.js
...
Fix the mismatch between the output of querystring.stringify() and this._encodeData().
2012-09-28 12:59:59 +03:00
ciaranj
d43a712548
Merge remote-tracking branch 'chrischw/master'
2012-07-28 13:25:12 +01:00
ciaranj
b03f6ae424
Remove excess double URL encoding introduced by fixes for issue #64
2012-07-28 13:09:32 +01:00
Christian Schwarz
5fab3c577e
Added an option to change the OAuth parameter seperator
2012-07-07 00:56:39 +02:00
Joe Rozner
d8d1e0bad7
fixed issue #64 w/ tests
2012-06-07 10:44:54 -07:00
ciaranj
85805b6b1b
Tidying up a method comment
2011-08-17 09:02:03 +01:00
Raoul Millais
aca047eaeb
Reimplemented configurable http method for token requests using setClientOptions
2011-08-17 08:42:58 +01:00
ciaranj
49c83f1824
Documented behaviour of getOAuthRequestToken
2011-08-16 14:04:01 +01:00
Raoul Millais
1b4624cacd
Added support for GET when requesting request tokens
2011-08-16 13:26:49 +01:00
ciaranj
0643395b2e
Supports OAuth Providers that don't end connections neatly (Google!)
2011-08-15 23:27:06 +01:00
bdickason
d8b5731446
Added support and test coverage for following 301 redirects
2011-07-08 10:04:45 -04:00
selead
5f383ff1b1
fix content length for oauth 1.0
2011-06-25 12:36:25 +04:00
ciaranj
3ed11c05bd
Inverting the branch logic for easier reading
2011-06-23 22:18:11 +01:00
Neil Mansilla
c78a9ca129
Match all 2xx response codes.
2011-06-23 09:14:46 -07:00
ciaranj
37c2408187
Some minor reformatting and 'standardisation' of the merged code
...
Also updating package.json to reflect Echo support
2011-05-10 23:31:14 +01:00
meltingice
ed01a23da1
Refactored OAuthEcho object into oauth.js to remove lots of redundancy
2011-05-08 23:07:57 -04:00
ciaranj
9fea0b5458
Added tests for 302 redirect functionality
2011-04-19 23:09:20 +01:00
neyric
15f06f254f
Follow 302 redirects with "Location" header
2011-02-26 15:01:54 +01:00
ciaranj
13d9420c94
Merge branch '0.4_compat_fixes'
...
Conflicts:
lib/oauth.js
2011-02-13 11:41:15 +00:00
ciaranj
5041ca168a
closes 24 - Now compatible with node v0.3.7
2011-02-02 21:35:04 +00:00
Rasmus Andersson
98e432b431
Compatibility with node 0.3.8
2011-02-02 19:34:32 +00:00
Daniel Hofstetter
40b70bb9ef
Renaming variable sshEnabled -> sslEnabled
2010-12-18 07:52:48 -08:00
ciaranj
3331aefe27
Resolves Issue 18 - Handles node.js querystring a little better
...
in the edge case on composite parameters such as foo[bar] :)
2010-12-13 20:04:41 +00:00
ciaranj
fd2fad54da
Adds support for PUT & DELETE verbs. Fixes #13
2010-12-12 23:06:24 +00:00
ciaranj
b3175f8b21
Fixes Issue 16. Now uses POST to get hold of the access tokens as per the specification.
...
Tested against Twitter/FourSquare and Yahoo.
2010-12-05 22:58:17 +00:00
ciaranj
f5beadcee4
If running on a node that has openssl built in, then this will be used for the SHA1 hashing.
...
Otherwise will fallback to the pure JS (original) SHA! implementation.
2010-12-05 22:32:19 +00:00
ciaranj
caebbc2ca1
Fixed the parameter ordering, and added support for repeated arguments. Fixes issue 14
2010-12-05 21:52:50 +00:00
François de Metz
7c40755a01
expose authHeader better integration in app
2010-11-10 00:57:53 +01:00
François de Metz
6d01536d66
refactor code from oauth.signUrl and oauth._performSecureRequest
2010-11-10 00:49:00 +01:00
ciaranj
b6f7e03061
Extra params when passed as a POST will now properly get set as the POST body rather than be discarded as previously
2010-10-31 23:15:22 +00:00
ciaranj
bfaa9c4e11
Merge branch 'master' of http://github.com/coopernurse/node-oauth into merge_coopernurse
...
Conflicts:
lib/oauth.js
2010-10-31 19:59:54 +00:00
James Cooper
bd54d3f899
add scope as an allowed oauth param so we can support google
2010-10-30 11:57:44 -07:00
Yohei Sasaki
fedf5776e7
more strict comparison.
2010-10-23 11:52:31 +01:00
ciaranj
417f367ae2
Remove some trailing whitespace
2010-10-17 17:19:27 +01:00
ciaranj
8a4b7e6b94
Gentle refactor to improve testability of the authorization headers code
2010-10-17 12:23:06 +01:00
Chris Anderson
72648d0bfc
write the post_body before returning the request object
2010-09-21 04:30:21 +08:00
Paul McKellar
2fa7f4ecb7
clone was too agressive, was getting some functions copied to headers from a bad library
2010-09-21 04:28:47 +08:00
ciaranj
3b94a77e5c
Possible mechanism for returning a signed request object.
...
if oauth.get/post is called without a callback parameter it will return
a valid request object that can have custom listeners etc. attached to it.
Don't forget to call 'end' on it :)
2010-08-26 19:28:54 +01:00
ciaranj
24c91e02b9
Add support for specifying whatever static HTTP headers one wishes with the OAuth requests
2010-08-14 19:21:12 +01:00
ciaranj
752c4419f9
Changed the post method to support passing of either a POST body string and optional content-type,
...
or a hash of query parameters that will be url form encoded.
2010-08-06 09:01:40 +01:00
ciaranj
7117b2df3e
Added new post method and get method. Deprecated older getProtectedResource method
2010-08-05 22:49:27 +01:00
ciaranj
3564e2e60b
Ughh, my later changesets appear to have blown away some of Mark's changes :(
...
Put back in the capitalisation change to getOAuthAccessToken.
2010-07-29 22:58:58 +01:00
Mark Wubben
0b4353bd38
Merge branch 'master' of http://github.com/ciaranj/node-oauth
...
Conflicts:
lib/oauth.js
2010-07-29 23:24:56 +02:00
Mark Wubben
33df3dfd17
Error object rather than string, which allows for better verification of the HTTP status code of the response.
2010-07-28 19:24:56 +02:00
Mark Wubben
c8393eb053
Support for passing extra parameters when getting a request token. Changed getOAuthAccessToken
to always expect an oauth_verifier
value (although it could be null
).
2010-07-28 19:24:13 +02:00