Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple Login to JIRA API #79

Open
Koka5 opened this issue Aug 23, 2014 · 0 comments
Open

Simple Login to JIRA API #79

Koka5 opened this issue Aug 23, 2014 · 0 comments

Comments

@Koka5
Copy link

Koka5 commented Aug 23, 2014

I have found that node-jira uses basic auth.

But is it possible only to login, then print the response body and not doing anything else?

In sort, i am seeking for the login API to jira in nodejs, after which i can console the response body containing successfull login html page.

I could not find login API anywhere in the repo.

However i have tried the following :

var request = require('request');

request({
protocol :
uri : 'http://myjira.com/login.jsp',
method: 'POST',
headers : { 'Content-type': 'application/x-www-form-urlencoded' },
body: 'os_username=shared&os_password=shared&os_destination=&atl_token=&login=Log+In'
},
function (err, response, body) {
console.log(body);
}
});

But i get the same page http://myjira.com/login.jsp without any error code.. (statusCode = 200)
with all the login form embedded in the page, instead of the loggedIn dashboard
Means it asks for login again.

whats wrong with it??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant