Permalink
Browse files

Weird, found a missing argument that I could swear I'd put in previou…

…sly?!!?
  • Loading branch information...
1 parent 171b6d4 commit ebcf1c29503277663a34518029f343b8d5ce7ad4 @ciaranj committed Jul 18, 2010
Showing with 11 additions and 4 deletions.
  1. +1 −1 Readme.md
  2. +9 −2 lib/oauth.js
  3. +1 −1 package.json
View
@@ -9,7 +9,7 @@ at express-auth (http://github.com/ciaranj/express-auth)
Change History
==============
-
+* 0.7.6 - Added in oauth_verifier property to getAccessToken required for 1.0A
* 0.7.5 - Added in a main.js to simplify the require'ing of OAuth
* 0.7.4 - Minor change to add an error listener to the OAuth client (thanks troyk)
* 0.7.3 - OAuth 2 now sends a Content-Length Http header to keep nginx happy :)
View
@@ -233,8 +233,15 @@ exports.OAuth.prototype._performSecureRequest= function( oauth_token, oauth_toke
request.end();
}
-exports.OAuth.prototype.getOauthAccessToken= function(oauth_token, oauth_token_secret, callback) {
- this._performSecureRequest( oauth_token, oauth_token_secret, "GET", this._accessUrl, null, function(error, data, response) {
+exports.OAuth.prototype.getOauthAccessToken= function(oauth_token, oauth_token_secret, oauth_verifier, callback) {
+ var extraParams= {};
+ if( typeof oauth_verifier == "function" ) {
+ callback= oauth_verifier;
+ } else {
+ extraParams.oauth_verifier= oauth_verifier;
+ }
+
+ this._performSecureRequest( oauth_token, oauth_token_secret, "GET", this._accessUrl, extraParams, function(error, data, response) {
if( error ) callback(error);
else {
var results= querystring.parse( data );
View
@@ -1,5 +1,5 @@
{ "name" : "oauth"
-, "version" : "0.7.5"
+, "version" : "0.7.6"
, "directories" : { "lib" : "./lib" }
, "main" : "main.js"
, "author" : "Ciaran Jessup"

0 comments on commit ebcf1c2

Please sign in to comment.