diff --git a/lib/jira.js b/lib/jira.js index 190e2661..5bb21e7c 100644 --- a/lib/jira.js +++ b/lib/jira.js @@ -181,8 +181,9 @@ var JiraApi = exports.JiraApi = function(protocol, host, port, username, passwor options.oauth = { consumer_key: oauth.consumer_key, consumer_secret: oauth.consumer_secret, - token: oauth.access_token, - token_secret: oauth.access_token_secret + token: oauth.access_token || oauth.token, + token_secret: oauth.access_token_secret || oauth.token_secret, + signature_method: oauth.signature_method }; } else if(this.username && this.password) { options.auth = { diff --git a/package.json b/package.json index 7e56d2b2..4d77064f 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ } ], "dependencies": { - "request": "<2.16.0", + "request": "^2.72.0", "oauth": "^0.9.11" }, "scripts": {