node.js - Authenticate to JIRA using node-jira module -
i need connect application jira api, , found module node-jira, should help me that.
however, i'm having problem authentication.
here's done (nothing special, reason, doesn't work):
var jiraapi = require('jira').jiraapi; var jira = new jiraapi('https', '[url jira project]', 443, '[username]', '[password]', '2.0.alpha1'); jira.getcurrentuser(function(error, issue) { if(error){ console.log(error); return; } console.log('success'); }); i receive:
401: error while getting current user any ideas go wrong?
after digging source code, looks mentioned method isn't making request properly.
it this.request instead of this.dorequest. i'll submit github repo.
node.js jira
No comments:
Post a Comment