-
Notifications
You must be signed in to change notification settings - Fork 327
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
Self-hosted Jira behind Okta #241
Comments
This works! I just logged into a Jira Server instance with Okta in front of it. I set |
I've tried all different combinations of |
I wonder if I can use token-based auth by just copy pasting token from browser into config file? |
I'm in the same boat: #231 Unfortunately I've not found a solution yet. |
I got it working with Okta. It's a hack and involves a modified version of the JSESSIONID hijacking that @anthonyrisinger found in #111. Steps are below:
|
I'm still not getting it. This is what I did:
Now, I understand that go-jira somehow was able to get that info from Jira, but it's missing JSESSIONID. And thus you need to run the second Could you please post the content of cookies.js (with private stuff garbled of course), I feel I'm getting close, but can't figure out exact keys that required for it to work. |
@agzam if you use push auth with okta, I created a login script wrapper for the command line using puppeteer. It generates the cookies file in |
@base698 could you post the shape of the expected cookies.js file? |
Using https://github.com/GoogleChrome/puppeteer I'm saving the cookies file after login.
|
Holy shit! @base698 This worked! It took me over 3 months but I got it (thanks to you guys) to work. Oh wow, this thing feels to be orders of magnitude faster that UI. |
the |
@base698 Can you explain puppeteer script workflow? So it logs-in through okta, etc. I get that. But what do you do when it requires "Okta Verify" validation on the phone? That part I guess can't be easily automated, right? |
It prints out "look at duo" and gives you time to hit the validation. There's probably a way to do an android emulator and automate it, but I just do that step manually now. |
Cool, I'm gonna try to write a puppeteer script, if that takes me too long I may have to beg you to share your solution, but just for the sake of good sportsmanship/crafting don't do it just yet :) |
@base698 I made it: https://github.com/agzam/jira-okta-puppet |
I wrote an alternative tool in Python to work with non-okta SSO systems: get-browser-cookies. Setup:
Run:
The above command populates You should now be able to run the Jira CLI! |
Can someone please tell me if this is possible at all?
How do I connect to a self-hosted Jira instance sitting behind Okta.
The text was updated successfully, but these errors were encountered: