Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create OKTA JIRA login with ruby

I need to authenticate to JIRA using Okta via REST, how can I do that on ruby? It is possible? I never did that before, I just only want to get an attached file from a ticket in JIRA

like image 956
Marco Herrarte Avatar asked Aug 31 '15 22:08

Marco Herrarte


1 Answers

It turns out that you can just send the JSESSIONID cookie from a logged-in user (such as yourself) to the REST API. You can get the cookie manually from the browser, or write a browser extension to get the cookie and then invoke your Ruby script with that cookie's value as a command-line argument. For Chrome, you could use Chrome Native Messaging for this.

like image 180
Robin Green Avatar answered Oct 19 '22 13:10

Robin Green