用ruby创建OKTA JIRA登录 [英] Create OKTA JIRA login with ruby

查看:112
本文介绍了用ruby创建OKTA JIRA登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过REST使用Okta对JIRA进行身份验证,我该如何在ruby上进行身份验证?有可能的?我以前从未做过,我只想从JIRA的票证中获取附件

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

推荐答案

事实证明,您可以将已登录用户(例如您自己)的JSESSIONID cookie发送到REST API.您可以从浏览器手动获取cookie,或编写浏览器扩展程序以获取cookie,然后使用该cookie的值作为命令行参数来调用Ruby脚本.对于Chrome,您可以为此使用Chrome Native Messaging.

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.

这篇关于用ruby创建OKTA JIRA登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆