Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed authorize_url from the client, was really the wrong place for…

… it :(
  • Loading branch information...
commit 0beb1c9f965511e8af5f6f51c5f93351cd39e693 1 parent 36eded6
@ciaranj ciaranj authored
View
3  examples/term.ie.oauth-HMAC-SHA1.js
@@ -4,13 +4,12 @@ var OAuth= require('../lib/oauth').OAuth;
var oa= new OAuth("http://term.ie/oauth/example/request_token.php?foo=bar",
"http://term.ie/oauth/example/access_token.php",
- null,
"key",
"secret",
"1.0",
"HMAC-SHA1")
-oa.getOAuthRequestToken(function(error, oauth_token, oauth_token_secret, authorize_url, results){
+oa.getOAuthRequestToken(function(error, oauth_token, oauth_token_secret, results){
if(error) sys.puts('error :' + error)
else {
sys.puts('oauth_token :' + oauth_token)
View
3  examples/term.ie.oauth-PLAINTEXT.js
@@ -4,13 +4,12 @@ var OAuth= require('../lib/oauth').OAuth;
var oa= new OAuth("http://term.ie/oauth/example/request_token.php?foo=bar",
"http://term.ie/oauth/example/access_token.php",
- null,
"key",
"secret",
"1.0",
"PLAINTEXT")
-oa.getOAuthRequestToken(function(error, oauth_token, oauth_token_secret, authorize_url, results){
+oa.getOAuthRequestToken(function(error, oauth_token, oauth_token_secret, results){
if(error) sys.puts('error :' + error)
else {
sys.puts('oauth_token :' + oauth_token)
View
5 lib/oauth.js
@@ -3,10 +3,9 @@ var sha1= require('./sha1'),
URL= require('url'),
querystring= require('querystring');
-exports.OAuth= function(requestUrl, accessUrl, authorizeUrl, consumerKey, consumerSecret, version, signatureMethod, nonceSize) {
+exports.OAuth= function(requestUrl, accessUrl, consumerKey, consumerSecret, version, signatureMethod, nonceSize) {
this._requestUrl= requestUrl;
this._accessUrl= accessUrl;
- this._authorizeUrl= authorizeUrl;
this._consumerKey= consumerKey;
this._consumerSecret= this._encodeData( consumerSecret );
this._version= version;
@@ -260,7 +259,7 @@ exports.OAuth.prototype.getOAuthRequestToken= function(callback) {
var oauth_token_secret= results["oauth_token_secret"];
delete results["oauth_token"];
delete results["oauth_token_secret"];
- callback(null, oauth_token, oauth_token_secret, (self._authorizeUrl + oauth_token), results );
+ callback(null, oauth_token, oauth_token_secret, results );
}
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.