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

403 browser login works. (SAML) yet jiralib1 works with just simple auth #4

Open
snuffop opened this issue Dec 7, 2018 · 2 comments

Comments

@snuffop
Copy link

snuffop commented Dec 7, 2018

I'm sure this has something to do with the method in which I'm accessing our Jira. Simple auth works with jiralib.el (org-jira) yet it cannot pull the (way to many) issues from the system before timeout. I'm hoping your jiralib2 can handle the job yet I can't seem to get past this 403 error. I'm not sure what else to try. It is a corp handled jira so modification would take an act of this hate trump Congress.

@nyyManni
Copy link
Owner

nyyManni commented Dec 8, 2018

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*

@snuffop
Copy link
Author

snuffop commented Aug 16, 2022

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.

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

2 participants