jira-node / node-jira-client

A Node.js wrapper for the Jira REST API
https://jira-node.github.io/
MIT License
450 stars 169 forks source link

Is there any support for cookies based auth? #213

Open benjaminch opened 6 years ago

benjaminch commented 6 years ago

Hello there,

First of all, thanks for this great lib :)

Wondering if this lib supports the cookies based auth using jsessionid as described here : https://developer.atlassian.com/jiradev/jira-apis/about-the-jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-cookie-based-authentication?

The point is to get a session id once login the user, and then use the session id for every API call until it expires and ask again for a new session id for the user :

headers: {cookie: JSESSIONID=6E3487971234567896704A9EB4AE501F}

The goal is not to pass any user / pass along within each requests ans thus don't trigger the auth workflow every time.

Thanks :)

JamesMGreene commented 6 years ago

See my pending PR #196.