{"action":"opened","issue":{"url":"https://api.github.com/repos/floralvikings/jira-connector/issues/34","repository_url":"https://api.github.com/repos/floralvikings/jira-connector","labels_url":"https://api.github.com/repos/floralvikings/jira-connector/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/floralvikings/jira-connector/issues/34/comments","events_url":"https://api.github.com/repos/floralvikings/jira-connector/issues/34/events","html_url":"https://github.com/floralvikings/jira-connector/issues/34","id":146479216,"number":34,"title":"Getting undefined when trying to get the token","user":{"login":"yagnesh-d-bhat","id":11819999,"avatar_url":"https://avatars.githubusercontent.com/u/11819999?v=3","gravatar_id":"","url":"https://api.github.com/users/yagnesh-d-bhat","html_url":"https://github.com/yagnesh-d-bhat","followers_url":"https://api.github.com/users/yagnesh-d-bhat/followers","following_url":"https://api.github.com/users/yagnesh-d-bhat/following{/other_user}","gists_url":"https://api.github.com/users/yagnesh-d-bhat/gists{/gist_id}","starred_url":"https://api.github.com/users/yagnesh-d-bhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yagnesh-d-bhat/subscriptions","organizations_url":"https://api.github.com/users/yagnesh-d-bhat/orgs","repos_url":"https://api.github.com/users/yagnesh-d-bhat/repos","events_url":"https://api.github.com/users/yagnesh-d-bhat/events{/privacy}","received_events_url":"https://api.github.com/users/yagnesh-d-bhat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-07T01:10:16Z","updated_at":"2016-04-07T01:10:16Z","closed_at":null,"body":"We tried this for our jira instance :\r\n\r\nvar JiraClient = require('./node_modules/jira-connector/index.js');\r\n\r\nJiraClient.oauth_util.getAuthorizeURL({\r\n    host: '<ourjirahost>.com',\r\n    oauth: {\r\n        consumer_key: '<requiredconsumerkey>',\r\n        private_key: '-----BEGIN RSA PRIVATE KEY-----\\n' +\r\n                                '<privatekey>\\n'\r\n                                '-----END RSA PRIVATE KEY-----'\r\n    }\r\n}, function (error, oauth) {\r\n    console.log(oauth);\r\n});\r\n\r\nWith all the steps provided in the doc of this addon , but it gives 'undefined' in the output when we run node <theabovefile>.js. I am exepcting to see a json like this :\r\n\r\n{\r\n    url: 'https://jenjinstudios.atlassian.net/plugins/servlet/oauth/authorize?oauth_token=some-token-here',\r\n    token: 'some-token-here',\r\n    token_secret: 'some-secret-here'\r\n}\r\n\r\nPlease revert back soon as to what might be the cause of this. Also is there a way to capture that output in some variable?\r\n"}}