Skip to content

Commit

Permalink
Weird, found a missing argument that I could swear I'd put in previou…
Browse files Browse the repository at this point in the history
…sly?!!?
  • Loading branch information
ciaranj committed Jul 18, 2010
1 parent 171b6d4 commit ebcf1c2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 :)
Expand Down
11 changes: 9 additions & 2 deletions lib/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ "name" : "oauth"
, "version" : "0.7.5"
, "version" : "0.7.6"
, "directories" : { "lib" : "./lib" }
, "main" : "main.js"
, "author" : "Ciaran Jessup"
Expand Down

0 comments on commit ebcf1c2

Please sign in to comment.