Weird, found a missing argument that I could swear I'd put in previously?!!?
This commit is contained in:
parent
171b6d4599
commit
ebcf1c2950
@ -9,7 +9,7 @@ at express-auth (http://github.com/ciaranj/express-auth)
|
|||||||
|
|
||||||
Change History
|
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.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.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 :)
|
* 0.7.3 - OAuth 2 now sends a Content-Length Http header to keep nginx happy :)
|
||||||
|
11
lib/oauth.js
11
lib/oauth.js
@ -233,8 +233,15 @@ exports.OAuth.prototype._performSecureRequest= function( oauth_token, oauth_toke
|
|||||||
request.end();
|
request.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.OAuth.prototype.getOauthAccessToken= function(oauth_token, oauth_token_secret, callback) {
|
exports.OAuth.prototype.getOauthAccessToken= function(oauth_token, oauth_token_secret, oauth_verifier, callback) {
|
||||||
this._performSecureRequest( oauth_token, oauth_token_secret, "GET", this._accessUrl, null, function(error, data, response) {
|
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);
|
if( error ) callback(error);
|
||||||
else {
|
else {
|
||||||
var results= querystring.parse( data );
|
var results= querystring.parse( data );
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ "name" : "oauth"
|
{ "name" : "oauth"
|
||||||
, "version" : "0.7.5"
|
, "version" : "0.7.6"
|
||||||
, "directories" : { "lib" : "./lib" }
|
, "directories" : { "lib" : "./lib" }
|
||||||
, "main" : "main.js"
|
, "main" : "main.js"
|
||||||
, "author" : "Ciaran Jessup"
|
, "author" : "Ciaran Jessup"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user