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

Authorization with SSO (Okta) #96

Closed
agzam opened this issue Jun 7, 2018 · 3 comments
Closed

Authorization with SSO (Okta) #96

agzam opened this issue Jun 7, 2018 · 3 comments

Comments

@agzam
Copy link

agzam commented Jun 7, 2018

Can someone help me. Our JIRA instance access controlled with Okta. I've been trying to use this trick https://github.com/ahungry/org-jira#authorization-workaround-not-secure but it's not working.

I set jiralib-token to be something like:

'("cookie" . "long-long thing I copied from the browser")

and it still says:

REQUEST [error] Error (error) while connecting to https://jira.my-company.com/rest/api/2/search.

although if I use curl including just that header - it works:

curl https://jira.my-company.com/rest/api/2/search -H "cookie: long-long thing I copied from the browser"
@ahungry
Copy link
Owner

ahungry commented Jun 13, 2018

I use:

       (setq jiralib-token
                 `("Cookie" . ,(format "<omitted browser cookie string>")))

@ahungry
Copy link
Owner

ahungry commented Jun 26, 2018

Any luck on this? I wonder if the copy/paste itself may have had a problem?

@agzam
Copy link
Author

agzam commented Jul 5, 2018

Sorry for the late response, I didn't have much chance to dig into this. it seems at my org specifically, because things are behind Incapsula (security tool), that thing does some munging to the cookie and it the pieces required for the package to work need to be carefully extracted by hand. Even when I did so, I have failed to read projects and issues. There's something sketchy happening, but it might be due to how things just are set up here, nothing to do with the package.
I'm closing this issue for now. Thank you for your help!

@agzam agzam closed this as completed Jul 5, 2018
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