Giter Site home page Giter Site logo

Comments (2)

nyyManni avatar nyyManni commented on August 28, 2024

Since the browser is using cookie-based authentication as well, it should be possible to get jiralib2 working, too.

If you have too many failed login attempts through the API, Jira might need you to log in from the browser and fill a captcha. I have had to do that several times.

The minimal steps to get the login to work are:

(setq jiralib2-url "https://jira.mycorp.com")  ;; note, no /rest/api/2 here, make sure you use correct protocol http/https
(jiralib2-session-login "username" "password")  ;; Evaluating this should return a string "JSESSIONID=...", it is also bound to *JIRA-SESSION*

from ejira.

snuffop avatar snuffop commented on August 28, 2024

I've attempted to try ejira again. apparently your lib is hitting the saml auth due to not appending the /rest/api/2 portion to the calls. prompting in emacs to login in the browser

Eval of (jiralib2-session-login "username" "password") with username and password replaced with proper values
login denied login in the browser.

SAML frontend denied. each time as the saml login is also 2fa.

I am connected and using the hosted jira perfectly in the browser. I don't understand what hook or method emacs uses the browser to get a session id? I've even attemted to set the JIRASESSION to the cookie found in the browsers session..

login denied login in the browser

Org-jira connects and pulls the data (partially) but it seems that the calls to the hosted version api's are different enough from the cloud version that it breaks on update and insert. So I tried ejira again.

jiralib2-verify-setup reports successfully logged in.

from ejira.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.